語言

Call.Callback.OnConnectionEvent(Call, String, Bundle) 方法

定義

當 a Call 從其對應 Connection 的事件 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

參數

call
Call

接收 Call 事件。

e
String
extras
Bundle

與連結事件相關的額外內容。

屬性

備註

當 a Call 從其對應 Connection 的事件 Conference或 接收到事件時,會被調用。

在可能的情況下,呼叫應嘗試處理 Connection 屬於命名空間的 android.telecom.* 事件。 呼叫應忽略任何不願處理的事件。 意外事件應優雅處理,因為 a ConnectionService 可能已定義自己的 Connection 事件,而 Call 未察覺。

參見 Connection#sendConnectionEvent(String, Bundle), Conference#sendConferenceEvent(String, Bundle)。

Java 文件 android.telecom.Call.Callback.onConnectionEvent(android.telecom.Call, java.lang.String, android.os.Bundle)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於