Udostępnij za pośrednictwem


PhoneStateListener.OnCallDisconnectCauseChanged(Int32, Int32) Method

Definition

Callback invoked when call disconnect cause changes on the registered subscription.

[Android.Runtime.Register("onCallDisconnectCauseChanged", "(II)V", "GetOnCallDisconnectCauseChanged_IIHandler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual void OnCallDisconnectCauseChanged (int disconnectCause, int preciseDisconnectCause);
[<Android.Runtime.Register("onCallDisconnectCauseChanged", "(II)V", "GetOnCallDisconnectCauseChanged_IIHandler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member OnCallDisconnectCauseChanged : int * int -> unit
override this.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 subId comes from TelephonyManager object which registers PhoneStateListener by TelephonyManager#listen(PhoneStateListener, int). If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the subId. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

This member is deprecated. Use TelephonyCallback.CallDisconnectCauseListener instead.

Java documentation for android.telephony.PhoneStateListener.onCallDisconnectCauseChanged(int, int).

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