語言

CallControl.RequestMuteState(Boolean, IExecutor, IOutcomeReceiver) 方法

定義

申請新的靜音狀態。

[Android.Runtime.Register("requestMuteState", "(ZLjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=35)]
public void RequestMuteState(bool isMuted, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("requestMuteState", "(ZLjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=35)>]
member this.RequestMuteState : bool * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

參數

isMuted
Boolean

新的啞巴狀態。 將 a Boolean#TRUE 傳遞給 isMuted 參數會使通話靜音。 Boolean#FALSE 會解除靜音通話。

executor
IExecutor

回ExecutorOutcomeReceiver訪將被點名。

callback
IOutcomeReceiver

OutcomeReceiver這些資料會在電信端完成,詳細說明所請求作業的成功或失敗。

                        <code data-dev-comment-type="c">OutcomeReceiver#onResult</code> will be called if Telecom has
                        successfully changed the mute state.

                        <code data-dev-comment-type="c">OutcomeReceiver#onError</code> will be called if Telecom has failed to
                        switch to the mute state.  A <code data-dev-comment-type="c">CallException</code> will be
                        passed that details why the operation failed.
屬性

備註

申請新的靜音狀態。 注意: CallEventCallback#onMuteStateChanged(boolean) 每次靜音狀態改變時都會呼叫,並可用來追蹤目前靜音狀態。

Java 文件 android.telecom.CallControl.requestMuteState(boolean, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.telecom.CallException>)。

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

適用於