Call.Callback.OnConnectionEvent(Call, String, Bundle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。