TelephonyCallback.ICallDisconnectCauseListener.OnCallDisconnectCauseChanged 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.
Callback invoked when call disconnect cause changes on the registered subscription.
[Android.Runtime.Register("onCallDisconnectCauseChanged", "(II)V", "GetOnCallDisconnectCauseChanged_IIHandler:Android.Telephony.TelephonyCallback/ICallDisconnectCauseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnCallDisconnectCauseChanged (int disconnectCause, int preciseDisconnectCause);
[<Android.Runtime.Register("onCallDisconnectCauseChanged", "(II)V", "GetOnCallDisconnectCauseChanged_IIHandler:Android.Telephony.TelephonyCallback/ICallDisconnectCauseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnCallDisconnectCauseChanged : int * int -> unit
Parameters
- disconnectCause
- Int32
DisconnectCause
.
- preciseDisconnectCause
- Int32
PreciseDisconnectCause
.
- Attributes
Remarks
Callback invoked when call disconnect cause changes on the registered subscription. Note, the registration subscription ID comes from TelephonyManager
object which registers TelephonyCallback by TelephonyManager#registerTelephonyCallback(Executor, TelephonyCallback)
. If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int)
, then the callback applies to the subscription ID. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId()
.
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.