Compartir a través de


ICallControlCallback.OnSetActive(IConsumer) Method

Definition

Telecom is informing the client to set the call active

[Android.Runtime.Register("onSetActive", "(Ljava/util/function/Consumer;)V", "GetOnSetActive_Ljava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnSetActive (Java.Util.Functions.IConsumer wasCompleted);
[<Android.Runtime.Register("onSetActive", "(Ljava/util/function/Consumer;)V", "GetOnSetActive_Ljava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnSetActive : Java.Util.Functions.IConsumer -> unit

Parameters

wasCompleted
IConsumer

The Consumer to be completed. If the client can set the call active on their end, the 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>.  Telecom will effectively ignore the remote
                            setActive request and the call will remain in whatever state it is in.
Attributes

Remarks

Telecom is informing the client to set the call active

Java documentation for android.telecom.CallControlCallback.onSetActive(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