RegistrationManager.RegistrationCallback


public static class RegistrationManager.RegistrationCallback
extends Object

java.lang.Object
   ↳ android.telephony.ims.RegistrationManager.RegistrationCallback


Callback class for receiving IMS network Registration callback events.

Summary

Public constructors

RegistrationCallback()

Public methods

void onRegistered(int imsTransportType)

This method was deprecated in API level 31. Use onRegistered(android.telephony.ims.ImsRegistrationAttributes) instead.

void onRegistered(ImsRegistrationAttributes attributes)

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

void onRegistering(ImsRegistrationAttributes attributes)

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

void onRegistering(int imsTransportType)

This method was deprecated in API level 31. Use onRegistering(android.telephony.ims.ImsRegistrationAttributes) instead.

void onTechnologyChangeFailed(int imsTransportType, ImsReasonInfo info)

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

void onUnregistered(ImsReasonInfo info)

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

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

RegistrationCallback

public RegistrationCallback ()

Public methods

onRegistered

Added in API level 30
Deprecated in API level 31
public void onRegistered (int imsTransportType)

This method was deprecated in API level 31.
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, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, or AccessNetworkConstants.TRANSPORT_TYPE_WLAN

onRegistered

Added in API level 31
public void onRegistered (ImsRegistrationAttributes attributes)

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 31
public void onRegistering (ImsRegistrationAttributes attributes)

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.

onRegistering

Added in API level 30
Deprecated in API level 31
public void onRegistering (int imsTransportType)

This method was deprecated in API level 31.
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, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, or AccessNetworkConstants.TRANSPORT_TYPE_WLAN

onTechnologyChangeFailed

Added in API level 30
public void onTechnologyChangeFailed (int imsTransportType, 
                ImsReasonInfo info)

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, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, or 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
public void onUnregistered (ImsReasonInfo info)

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.