Langue

ICallControlCallback.OnAnswer(CallType, IConsumer) Méthode

Définition

Telecom informe le client de répondre à un appel entrant et de le définir sur actif.

[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

Paramètres

videoState
CallType

l’état vidéo

wasCompleted
IConsumer

Consumer À terminer. Si le client peut répondre à l’appel à sa fin, Consumer#accept(Object) il doit être appelé avec 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.
Attributs

Remarques

Telecom informe le client de répondre à un appel entrant et de le définir sur actif.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à