CallControl.Answer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Answer(Int32, IExecutor, IOutcomeReceiver) |
请求电信应答传入呼叫。 |
| Answer(CallType, IExecutor, IOutcomeReceiver) |
请求电信应答传入呼叫。 |
Answer(Int32, IExecutor, IOutcomeReceiver)
请求电信应答传入呼叫。
[Android.Runtime.Register("answer", "(ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void Answer(int callType, 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 : int * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
参数
- callType
- Int32
向 Telecom 报告。 电信将在另一个服务/设备请求调用时存储 CallType,以便继续在另一个屏幕上进行呼叫。
- 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Answer(CallType, IExecutor, IOutcomeReceiver)
请求电信应答传入呼叫。
[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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。