# RegistrationManager.RegistrationCallback

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

# RegistrationCallback

*** ** * ** ***

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

```
open class RegistrationCallback
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                   ||
| ↳ | [android.telephony.ims.RegistrationManager.RegistrationCallback](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#) |

Callback class for receiving IMS network Registration callback events.

## Summary

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

|                                                                                                                                                                                                                                                                                                   Public methods                                                                                                                                                                                                                                                                                                   ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistered](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(android.telephony.ims.ImsRegistrationAttributes))`(`attributes:` `[ImsRegistrationAttributes](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsRegistrationAttributes)`)` Notifies the framework when the IMS Provider is registered to the IMS network with corresponding attributes.                                                                          |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistered](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(kotlin.Int))`(`imsTransportType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Notifies the framework when the IMS Provider is registered to the IMS network.                                                                                                                                                                                        |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistering](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(android.telephony.ims.ImsRegistrationAttributes))`(`attributes:` `[ImsRegistrationAttributes](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsRegistrationAttributes)`)` Notifies the framework when the IMS Provider is trying to register the IMS network.                                                                                                 |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRegistering](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistering(kotlin.Int))`(`imsTransportType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Notifies the framework when the IMS Provider is trying to register the IMS network.                                                                                                                                                                                 |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onTechnologyChangeFailed](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onTechnologyChangeFailed(kotlin.Int,%20android.telephony.ims.ImsReasonInfo))`(`imsTransportType:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `info:` `[ImsReasonInfo](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsReasonInfo)`)` A failure has occurred when trying to handover registration to another technology type. |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onUnregistered](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onUnregistered(android.telephony.ims.ImsReasonInfo))`(`info:` `[ImsReasonInfo](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsReasonInfo)`)` Notifies the framework when the IMS Provider is unregistered from the IMS network.                                                                                                                                          |

## Public constructors

### RegistrationCallback

```
RegistrationCallback()
```

## Public methods

### onRegistered

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

```
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](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsRegistrationAttributes):The attributes associated with this IMS registration. This value cannot be`null`. |

### onRegistered

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

```
open fun onRegistered(imsTransportType: Int): Unit
```

**Deprecated:** *Use[onRegistered(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/kotlin/android/telephony/ims/RegistrationManager.RegistrationCallback#onRegistered(android.telephony.ims.ImsRegistrationAttributes))instead.*

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

|                                                                                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                                                                                            ||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `imsTransportType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID,[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WWAN:kotlin.Int), or[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WLAN:kotlin.Int) |

### onRegistering

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

```
open fun onRegistering(attributes: ImsRegistrationAttributes): Unit
```

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

|                                                                                                         Parameters                                                                                                          ||
|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `attributes` | [ImsRegistrationAttributes](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsRegistrationAttributes):The attributes associated with this IMS registration. This value cannot be`null`. |

### onRegistering

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

```
open fun onRegistering(imsTransportType: Int): Unit
```

**Deprecated:** *Use[onRegistering(android.telephony.ims.ImsRegistrationAttributes)](https://developer.android.com/reference/kotlin/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.

|                                                                                                                                                                                                                                                                                           Parameters                                                                                                                                                                                                                                                                                            ||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `imsTransportType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the radio access technology. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID,[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WWAN:kotlin.Int), or[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WLAN:kotlin.Int) |

### onTechnologyChangeFailed

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

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

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

|                                                                                                                                                                                                                                                                                                             Parameters                                                                                                                                                                                                                                                                                                             ||
|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `imsTransportType` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The transport type that has failed to handover registration to. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID,[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WWAN:kotlin.Int), or[android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN](https://developer.android.com/reference/kotlin/android/telephony/AccessNetworkConstants.html#TRANSPORT_TYPE_WLAN:kotlin.Int) |
| `info`             | [ImsReasonInfo](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsReasonInfo):A[ImsReasonInfo](https://developer.android.com/reference/kotlin/android/telephony/ims/ImsReasonInfo)that identifies the reason for failure. This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                    |

### onUnregistered

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

```
open fun onUnregistered(info: ImsReasonInfo): Unit
```

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

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