CallControl.Answer(CallType, 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 Telecom answer an incoming call.
[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
Parameters
- videoState
- CallType
to report to Telecom. Telecom will store VideoState in the event another service/device requests it in order to continue the call on another screen.
- executor
- IExecutor
The Executor
on which the OutcomeReceiver
callback
will be called on.
- callback
- IOutcomeReceiver
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
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.
- Attributes
Remarks
Request Telecom answer an incoming call. For outgoing calls and calls that have been placed on hold, use CallControl#setActive(Executor, OutcomeReceiver)
.
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.