CallControl.RequestMuteState(Boolean, IExecutor, IOutcomeReceiver) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求新的静音状态。
[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
新的静音状态。 传入 Boolean#TRUE isMuted 参数会将调用静音。
Boolean#FALSE 将取消静音调用。
- executor
- IExecutor
Executor调用回调的OutcomeReceiver依据。
- 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) 每次更改静音状态时都会调用,并可用于跟踪当前静音状态。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。