Megosztás a következőn keresztül:


ICallControlCallback.OnAnswer(CallType, IConsumer) Method

Definition

Telecom is informing the client to answer an incoming call and set it to active.

[Android.Runtime.Register("onAnswer", "(ILjava/util/function/Consumer;)V", "GetOnAnswer_ILjava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnAnswer (Android.Telecom.CallType videoState, Java.Util.Functions.IConsumer wasCompleted);
[<Android.Runtime.Register("onAnswer", "(ILjava/util/function/Consumer;)V", "GetOnAnswer_ILjava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnAnswer : Android.Telecom.CallType * Java.Util.Functions.IConsumer -> unit

Parameters

videoState
CallType

see android.telecom.CallAttributes.CallType for valid states

wasCompleted
IConsumer

The Consumer to be completed. If the client can answer the call on their end, Consumer#accept(Object) should be called with Boolean#TRUE.

                            Otherwise,<code data-dev-comment-type="c">Consumer#accept(Object)</code> should  be called with
                            <code data-dev-comment-type="c">Boolean#FALSE</code>. However, Telecom will still disconnect
                            the call and remove it from tracking.
Attributes

Remarks

Telecom is informing the client to answer an incoming call and set it to active.

Java documentation for android.telecom.CallControlCallback.onAnswer(int, java.util.function.Consumer<java.lang.Boolean>).

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.

Applies to