CallControl.Answer(CallType, IExecutor, IOutcomeReceiver) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求电信应答传入呼叫。
[Android.Runtime.Register("answer", "(ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void Answer (Android.Telecom.CallType videoState, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("answer", "(ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.Answer : Android.Telecom.CallType * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
参数
- videoState
- CallType
向 Telecom 报告。 Telecom 将在另一个服务/设备请求 VideoState 时存储 VideoState,以便继续在另一个屏幕上调用。
- 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 active
<code data-dev-comment-type="c">OutcomeReceiver#onError</code> will be called if Telecom has failed to set
the call state to active. A <code data-dev-comment-type="c">CallException</code> will be passed
that details why the operation failed.
- 属性
注解
请求电信应答传入呼叫。 对于已暂停的传出呼叫和呼叫,请使用 CallControl#setActive(Executor, OutcomeReceiver)
。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。