# RegistrationManager.RegistrationCallback

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#pubctors)\|[Methods](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#inhmethods)  

# RegistrationManager.RegistrationCallback

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback "View this page in Kotlin")\|Java

`
public
static


class
RegistrationManager.RegistrationCallback
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|----------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.telephony.ims.RegistrationManager.RegistrationCallback |

<br />

*** ** * ** ***

Callback class for receiving IMS network Registration callback events.  
**See also:**

- [RegistrationManager.registerImsRegistrationCallback(Executor, RegistrationCallback)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager#registerImsRegistrationCallback(java.util.concurrent.Executor,%20android.telephony.ims.RegistrationManager.RegistrationCallback))
- [RegistrationManager.unregisterImsRegistrationCallback(RegistrationCallback)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager#unregisterImsRegistrationCallback(android.telephony.ims.RegistrationManager.RegistrationCallback))

## Summary

|                                                                     ### Public constructors                                                                      ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[RegistrationCallback](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#RegistrationCallback())`() ` |

|                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                ||
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onRegistered](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(int))`(int imsTransportType) ` *This method was deprecated in API level 31. Use[onRegistered(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(android.telephony.ims.ImsRegistrationAttributes))instead.*     |
| ` void` | ` `[onRegistered](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(android.telephony.ims.ImsRegistrationAttributes))`(`[ImsRegistrationAttributes](https://developer.android.com/reference/android/telephony/ims/ImsRegistrationAttributes)` attributes) ` Notifies the framework when the IMS Provider is registered to the IMS network with corresponding attributes.                              |
| ` void` | ` `[onRegistering](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(android.telephony.ims.ImsRegistrationAttributes))`(`[ImsRegistrationAttributes](https://developer.android.com/reference/android/telephony/ims/ImsRegistrationAttributes)` attributes) ` Notifies the framework when the IMS Provider is trying to register the IMS network.                                                     |
| ` void` | ` `[onRegistering](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(int))`(int imsTransportType) ` *This method was deprecated in API level 31. Use[onRegistering(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(android.telephony.ims.ImsRegistrationAttributes))instead.* |
| ` void` | ` `[onTechnologyChangeFailed](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onTechnologyChangeFailed(int,%20android.telephony.ims.ImsReasonInfo))`(int imsTransportType, `[ImsReasonInfo](https://developer.android.com/reference/android/telephony/ims/ImsReasonInfo)` info) ` A failure has occurred when trying to handover registration to another technology type.                                        |
| ` void` | ` `[onUnregistered](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onUnregistered(android.telephony.ims.ImsReasonInfo))`(`[ImsReasonInfo](https://developer.android.com/reference/android/telephony/ims/ImsReasonInfo)` info) ` Notifies the framework when the IMS Provider is unregistered from the IMS network.                                                                                              |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(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](https://developer.android.com/reference/java/lang/Object#wait(long))`(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](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### RegistrationCallback

```
public RegistrationCallback ()
```

<br />

<br />

## Public methods

### onRegistered

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onRegistered (int imsTransportType)
```

<br />

**This method was deprecated in API level 31.**   
Use[onRegistered(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(android.telephony.ims.ImsRegistrationAttributes))instead.

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

<br />

|                                                                                                                                                                                                                    Parameters                                                                                                                                                                                                                    ||
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `imsTransportType` | `int`: the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID,[AccessNetworkConstants.TRANSPORT_TYPE_WWAN](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WWAN), or[AccessNetworkConstants.TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WLAN) <br /> |

### onRegistered

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onRegistered (ImsRegistrationAttributes attributes)
```

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

<br />

|                                                             Parameters                                                              ||
|--------------|-----------------------------------------------------------------------------------------------------------------------|
| `attributes` | `ImsRegistrationAttributes`: The attributes associated with this IMS registration. This value cannot be`null`. <br /> |

### onRegistering

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onRegistering (ImsRegistrationAttributes attributes)
```

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

<br />

|                                                             Parameters                                                              ||
|--------------|-----------------------------------------------------------------------------------------------------------------------|
| `attributes` | `ImsRegistrationAttributes`: The attributes associated with this IMS registration. This value cannot be`null`. <br /> |

### onRegistering

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onRegistering (int imsTransportType)
```

<br />

**This method was deprecated in API level 31.**   
Use[onRegistering(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(android.telephony.ims.ImsRegistrationAttributes))instead.

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

<br />

|                                                                                                                                                                                                                    Parameters                                                                                                                                                                                                                    ||
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `imsTransportType` | `int`: the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID,[AccessNetworkConstants.TRANSPORT_TYPE_WWAN](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WWAN), or[AccessNetworkConstants.TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WLAN) <br /> |

### onTechnologyChangeFailed

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onTechnologyChangeFailed (int imsTransportType, 
                ImsReasonInfo info)
```

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

<br />

|                                                                                                                                                                                                                                     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](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WWAN), or[AccessNetworkConstants.TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/android/telephony/AccessNetworkConstants#TRANSPORT_TYPE_WLAN) <br /> |
| `info`             | `ImsReasonInfo`: A[ImsReasonInfo](https://developer.android.com/reference/android/telephony/ims/ImsReasonInfo)that identifies the reason for failure. This value cannot be`null`. <br />                                                                                                                                                                                                                                                                        |

### onUnregistered

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onUnregistered (ImsReasonInfo info)
```

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

<br />

|                                                                                                  Parameters                                                                                                   ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `info` | `ImsReasonInfo`: the[ImsReasonInfo](https://developer.android.com/reference/android/telephony/ims/ImsReasonInfo)associated with why registration was disconnected. This value cannot be`null`. <br /> |