Share via


ICallControlCallback.OnDisconnect(DisconnectCause, IConsumer) Method

Definition

Telecom is informing the client to disconnect the call

[Android.Runtime.Register("onDisconnect", "(Landroid/telecom/DisconnectCause;Ljava/util/function/Consumer;)V", "GetOnDisconnect_Landroid_telecom_DisconnectCause_Ljava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnDisconnect (Android.Telecom.DisconnectCause disconnectCause, Java.Util.Functions.IConsumer wasCompleted);
[<Android.Runtime.Register("onDisconnect", "(Landroid/telecom/DisconnectCause;Ljava/util/function/Consumer;)V", "GetOnDisconnect_Landroid_telecom_DisconnectCause_Ljava_util_function_Consumer_Handler:Android.Telecom.ICallControlCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnDisconnect : Android.Telecom.DisconnectCause * Java.Util.Functions.IConsumer -> unit

Parameters

disconnectCause
DisconnectCause

represents the cause for disconnecting the call.

wasCompleted
IConsumer

The Consumer to be completed. If the client can disconnect 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 disconnect the call

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