Added in API level 30

RegistrationCallback

open class RegistrationCallback
kotlin.Any
   ↳ android.telephony.ims.RegistrationManager.RegistrationCallback

Callback class for receiving IMS network Registration callback events.

Summary

Public constructors

Public methods
open Unit
onRegistered(imsTransportType: Int)

Notifies the framework when the IMS Provider is registered to the IMS network.

open Unit

Notifies the framework when the IMS Provider is registered to the IMS network with corresponding attributes.

open Unit
onRegistering(imsTransportType: Int)

Notifies the framework when the IMS Provider is trying to register the IMS network.

open Unit

Notifies the framework when the IMS Provider is trying to register the IMS network.

open Unit
onTechnologyChangeFailed(imsTransportType: Int, info: ImsReasonInfo)

A failure has occurred when trying to handover registration to another technology type.

open Unit

Notifies the framework when the IMS Provider is unregistered from the IMS network.

Public constructors

RegistrationCallback

RegistrationCallback()

Public methods

onRegistered

Added in API level 30
Deprecated in API level 31
open fun onRegistered(imsTransportType: Int): Unit

Deprecated: Use onRegistered(android.telephony.ims.ImsRegistrationAttributes) instead.

Notifies the framework when the IMS Provider is registered to the IMS network.

Parameters
imsTransportType Int: the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID, android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN, or android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN

onRegistered

Added in API level 31
open fun onRegistered(attributes: ImsRegistrationAttributes): Unit

Notifies the framework when the IMS Provider is registered to the IMS network with corresponding attributes.

Parameters
attributes ImsRegistrationAttributes: The attributes associated with this IMS registration. This value cannot be null.

onRegistering

Added in API level 30
Deprecated in API level 31
open fun onRegistering(imsTransportType: Int): Unit

Deprecated: Use onRegistering(android.telephony.ims.ImsRegistrationAttributes) instead.

Notifies the framework when the IMS Provider is trying to register the IMS network.

Parameters
imsTransportType Int: the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID, android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN, or android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN

onRegistering

Added in API level 31
open fun onRegistering(attributes: ImsRegistrationAttributes): Unit

Notifies the framework when the IMS Provider is trying to register the IMS network.

Parameters
attributes ImsRegistrationAttributes: The attributes associated with this IMS registration. This value cannot be null.

onTechnologyChangeFailed

Added in API level 30
open fun onTechnologyChangeFailed(
    imsTransportType: Int,
    info: ImsReasonInfo
): Unit

A failure has occurred when trying to handover registration to another technology type.

Parameters
imsTransportType Int: The transport type that has failed to handover registration to. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID, android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN, or android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN
info ImsReasonInfo: A ImsReasonInfo that identifies the reason for failure. This value cannot be null.

onUnregistered

Added in API level 30
open fun onUnregistered(info: ImsReasonInfo): Unit

Notifies the framework when the IMS Provider is unregistered from the IMS network.

Parameters
info ImsReasonInfo: the ImsReasonInfo associated with why registration was disconnected. This value cannot be null.