Connection.OnCallEvent(String, Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies this Connection of a Call
event initiated from an InCallService
.
[Android.Runtime.Register("onCallEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCallEvent_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)]
public virtual void OnCallEvent (string? e, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onCallEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCallEvent_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)>]
abstract member OnCallEvent : string * Android.OS.Bundle -> unit
override this.OnCallEvent : string * Android.OS.Bundle -> unit
Parameters
- e
- String
- extras
- Bundle
Extras associated with the call event.
- Attributes
Remarks
Notifies this Connection of a Call
event initiated from an InCallService
.
The InCallService
issues a Call event via Call#sendCallEvent(String, Bundle)
.
Where possible, the Connection should make an attempt to handle Call
events which are part of the android.telecom.*
namespace. The Connection should ignore any events it does not wish to handle. Unexpected events should be handled gracefully, as it is possible that a InCallService
has defined its own Call events which a Connection is not aware of.
See also Call#sendCallEvent(String, Bundle)
.
Java documentation for android.telecom.Connection.onCallEvent(java.lang.String, android.os.Bundle)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.