CallControl.SetContactUri(Uri, IExecutor, IOutcomeReceiver) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定 VoIP 聯絡人 URI 以進行通話。
[Android.Runtime.Register("setContactUri", "(Landroid/net/Uri;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void SetContactUri(Android.Net.Uri? uri, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("setContactUri", "(Landroid/net/Uri;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.SetContactUri : Android.Net.Uri * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
參數
- uri
- Uri
VoIP 應用程式聯絡目錄中聯絡人或群組的內容 URI,或有效的 CP2 聯絡人。 此 URI 必須穩定且系統可解析,若未使用則為空。
- executor
- IExecutor
回ExecutorOutcomeReceiver訪將被點名。
- callback
- IOutcomeReceiver
這些資料會在電信端完成,詳述所請求作業的成敗。
<code data-dev-comment-type="c">OutcomeReceiver#onResult</code> will be called if Telecom has successfully
switched the video state.
<code data-dev-comment-type="c">OutcomeReceiver#onError</code> will be called if Telecom has failed to set
the new video state. A <code data-dev-comment-type="c">CallException</code> will be passed
that details why the operation failed.
- 屬性
備註
設定 VoIP 聯絡人 URI 以進行通話。
此方法應由 VoIP 應用程式呼叫。 當通話轉為或從群組通話轉接時。 例如,如果一對一通話增加了更多參與者,並變成一場會議。 這應該與 CallControl.setGroupCallState 一同使用。
提供此狀態後,Android 系統能在系統的使用者介面中正確呈現通話,例如原生通話記錄。 作為整合通話記錄功能的一部分,該功能提供業者與 VoIP 通話的統一歷史,準確將通話與有效的查詢 URI 關聯對一致性的使用者體驗至關重要。
URI 參數對於將通話連結至 VoIP 聯絡目錄中的特定群組實體或 CP2 聯絡人至關重要。 這有助於將通話記錄條目與正確的聯絡資訊(如團體名稱和頭像)關聯起來。
Android 參考資料。android.telecom.CallControl.setContactUri
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。