语言

CallControl.SetInactive(IExecutor, IOutcomeReceiver) 方法

定义

请求电信将呼叫状态设置为非活动状态。

[Android.Runtime.Register("setInactive", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void SetInactive(Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("setInactive", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.SetInactive : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

executor
IExecutor

Executor调用回调的OutcomeReceiver依据。

callback
IOutcomeReceiver

将在电信端完成,详细说明所请求操作的成功或失败。

                        <code data-dev-comment-type="c">OutcomeReceiver#onResult</code> will be called if Telecom has successfully
                        switched the call state to inactive

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

注解

请求电信将呼叫状态设置为非活动状态。 这与两个呼叫终结点的保留相同,但可以扩展到将会议设置为非活动状态。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于