次の方法で共有


Call.Callback.OnConnectionEvent(Call, String, Bundle) Method

Definition

Invoked when a Call receives an event from its associated Connection or Conference.

[Android.Runtime.Register("onConnectionEvent", "(Landroid/telecom/Call;Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnConnectionEvent_Landroid_telecom_Call_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)]
public virtual void OnConnectionEvent (Android.Telecom.Call call, string e, Android.OS.Bundle extras);
[<Android.Runtime.Register("onConnectionEvent", "(Landroid/telecom/Call;Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnConnectionEvent_Landroid_telecom_Call_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=25)>]
abstract member OnConnectionEvent : Android.Telecom.Call * string * Android.OS.Bundle -> unit
override this.OnConnectionEvent : Android.Telecom.Call * string * Android.OS.Bundle -> unit

Parameters

call
Call

The Call receiving the event.

e
String
extras
Bundle

Extras associated with the connection event.

Attributes

Remarks

Invoked when a Call receives an event from its associated Connection or Conference.

Where possible, the Call should make an attempt to handle Connection events which are part of the android.telecom.* namespace. The Call should ignore any events it does not wish to handle. Unexpected events should be handled gracefully, as it is possible that a ConnectionService has defined its own Connection events which a Call is not aware of.

See Connection#sendConnectionEvent(String, Bundle), Conference#sendConferenceEvent(String, Bundle).

Java documentation for android.telecom.Call.Callback.onConnectionEvent(android.telecom.Call, 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.

Applies to