CallControl.Disconnect(DisconnectCause, IExecutor, IOutcomeReceiver) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請求電信斷線並將通話從電信追蹤中移除。
[Android.Runtime.Register("disconnect", "(Landroid/telecom/DisconnectCause;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void Disconnect(Android.Telecom.DisconnectCause disconnectCause, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("disconnect", "(Landroid/telecom/DisconnectCause;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.Disconnect : Android.Telecom.DisconnectCause * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
參數
- disconnectCause
- DisconnectCause
代表斷線的原因。 通過的android.telecom.DisconnectCause代碼只有:<ul><li>DisconnectCause#LOCAL</li><li>DisconnectCause#REMOTE</li li/li><li>DisconnectCause#REJECTED</li li/li><>DisconnectCause#MISSED< li/ul><>
- executor
- IExecutor
回ExecutorOutcomeReceiver訪將被點名。
- callback
- IOutcomeReceiver
電信端會完成相關作業,詳述所請求作業的成敗。
<code data-dev-comment-type="c">OutcomeReceiver#onResult</code> will be called if Telecom has
successfully disconnected the call.
<code data-dev-comment-type="c">OutcomeReceiver#onError</code> will be called if Telecom has failed
to disconnect the call. A <code data-dev-comment-type="c">CallException</code> will be passed
that details why the operation failed.
<p>
Note: After the call has been successfully disconnected, calling any CallControl API will
result in the <code data-dev-comment-type="c">OutcomeReceiver#onError</code> with
<code data-dev-comment-type="c">CallException#CODE_CALL_IS_NOT_BEING_TRACKED</code>.
- 屬性
備註
請求電信斷線並將通話從電信追蹤中移除。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。