Partager via


PhoneStateListener.OnImsCallDisconnectCauseChanged(ImsReasonInfo) Method

Definition

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

[Android.Runtime.Register("onImsCallDisconnectCauseChanged", "(Landroid/telephony/ims/ImsReasonInfo;)V", "GetOnImsCallDisconnectCauseChanged_Landroid_telephony_ims_ImsReasonInfo_Handler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual void OnImsCallDisconnectCauseChanged (Android.Telephony.Ims.ImsReasonInfo imsReasonInfo);
[<Android.Runtime.Register("onImsCallDisconnectCauseChanged", "(Landroid/telephony/ims/ImsReasonInfo;)V", "GetOnImsCallDisconnectCauseChanged_Landroid_telephony_ims_ImsReasonInfo_Handler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member OnImsCallDisconnectCauseChanged : Android.Telephony.Ims.ImsReasonInfo -> unit
override this.OnImsCallDisconnectCauseChanged : Android.Telephony.Ims.ImsReasonInfo -> unit

Parameters

imsReasonInfo
ImsReasonInfo

ImsReasonInfo contains details on why IMS call failed.

Attributes

Remarks

Callback invoked when Ims 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.ImsCallDisconnectCauseListener instead.

Java documentation for android.telephony.PhoneStateListener.onImsCallDisconnectCauseChanged(android.telephony.ims.ImsReasonInfo).

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