CallControl.RequestMuteState(Boolean, IExecutor, IOutcomeReceiver) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request a new mute state.
[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
Parameters
- isMuted
- Boolean
The new mute state. Passing in a Boolean#TRUE
for the isMuted
parameter will mute the call. Boolean#FALSE
will unmute the call.
- executor
- IExecutor
The Executor
on which the OutcomeReceiver
callback
will be called on.
- callback
- IOutcomeReceiver
The OutcomeReceiver
that will be completed on the Telecom side
that details success or failure of the requested operation.
<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.
- Attributes
Remarks
Request a new mute state. Note: CallEventCallback#onMuteStateChanged(boolean)
will be called every time the mute state is changed and can be used to track the current mute state.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.