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

# ImsManager

*** ** * ** ***

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


`
public


class
ImsManager
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

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

<br />

*** ** * ** ***

Provides access to information about Telephony IMS services on the device.


Requires the `https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELEPHONY_IMS` feature which can be detected using `https://developer.android.com/reference/android/content/pm/PackageManager#hasSystemFeature(java.lang.String)`.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telephony/ims/ImsManager#ACTION_WFC_IMS_REGISTRATION_ERROR` An intent action indicating that IMS registration for WiFi calling has resulted in an error. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telephony/ims/ImsManager#EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE` An extra key corresponding to a `https://developer.android.com/reference/java/lang/CharSequence` value which contains the carrier specific message to be displayed as part of the message shown to the user when there is an error registering for WiFi calling. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telephony/ims/ImsManager#EXTRA_WFC_REGISTRATION_FAILURE_TITLE` An extra key corresponding to a `https://developer.android.com/reference/java/lang/CharSequence` value which contains the carrier specific title to be displayed as part of the message shown to the user when there is an error registering for WiFi calling. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/telephony/ims/ImsMmTelManager` | ` https://developer.android.com/reference/android/telephony/ims/ImsManager#getImsMmTelManager(int)(int subscriptionId) ` Create an instance of ImsMmTelManager for the subscription id specified. |
| ` https://developer.android.com/reference/android/telephony/ims/ImsRcsManager` | ` https://developer.android.com/reference/android/telephony/ims/ImsManager#getImsRcsManager(int)(int subscriptionId) ` Create an instance of ImsRcsManager for the subscription id specified. |
| ` https://developer.android.com/reference/android/telephony/ims/ProvisioningManager` | ` https://developer.android.com/reference/android/telephony/ims/ImsManager#getProvisioningManager(int)(int subscriptionId) ` Create an instance of `https://developer.android.com/reference/android/telephony/ims/ProvisioningManager` for the subscription id specified. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` 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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` 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` | ` 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` | ` 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*. | ||

## Constants

### ACTION_WFC_IMS_REGISTRATION_ERROR

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

```
public static final String ACTION_WFC_IMS_REGISTRATION_ERROR
```

An intent action indicating that IMS registration for WiFi calling has resulted in an error.
Contains error information that should be displayed to the user.


This intent will contain the following extra key/value pairs:
`https://developer.android.com/reference/android/telephony/ims/ImsManager#EXTRA_WFC_REGISTRATION_FAILURE_TITLE`
and `https://developer.android.com/reference/android/telephony/ims/ImsManager#EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE`, which contain carrier specific
error information that should be displayed to the user.


Usage: This intent is sent as an ordered broadcast. If the settings application is going
to show the error information specified to the user, it should respond to
`https://developer.android.com/reference/android/content/BroadcastReceiver#setResultCode(int)` with
`https://developer.android.com/reference/android/app/Activity#RESULT_CANCELED`, which will signal to the framework that the
event was handled. If the framework does not receive a response to the ordered broadcast,
it will then show a notification to the user indicating that there was a registration
failure.

<br />

Constant Value:

"android.telephony.ims.action.WFC_IMS_REGISTRATION_ERROR"


### EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE

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

```
public static final String EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE
```

An extra key corresponding to a `https://developer.android.com/reference/java/lang/CharSequence` value which contains the carrier
specific message to be displayed as part of the message shown to the user when there is an
error registering for WiFi calling.

<br />

Constant Value:

"android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_MESSAGE"


### EXTRA_WFC_REGISTRATION_FAILURE_TITLE

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

```
public static final String EXTRA_WFC_REGISTRATION_FAILURE_TITLE
```

An extra key corresponding to a `https://developer.android.com/reference/java/lang/CharSequence` value which contains the carrier
specific title to be displayed as part of the message shown to the user when there is an
error registering for WiFi calling.

<br />

Constant Value:

"android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_TITLE"


## Public methods

### getImsMmTelManager

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

```
public ImsMmTelManager getImsMmTelManager (int subscriptionId)
```

Create an instance of ImsMmTelManager for the subscription id specified.

<br />

| Parameters ||
|---|---|
| `subscriptionId` | `int`: The ID of the subscription that this ImsMmTelManager will use. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telephony/ims/ImsMmTelManager` | a ImsMmTelManager instance with the specific subscription ID. This value cannot be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the subscription is invalid. |

### getImsRcsManager

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

```
public ImsRcsManager getImsRcsManager (int subscriptionId)
```

Create an instance of ImsRcsManager for the subscription id specified.

<br />

| Parameters ||
|---|---|
| `subscriptionId` | `int`: The ID of the subscription that this ImsRcsManager will use. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telephony/ims/ImsRcsManager` | a ImsRcsManager instance with the specific subscription ID. This value cannot be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the subscription is invalid. |

### getProvisioningManager

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

```
public ProvisioningManager getProvisioningManager (int subscriptionId)
```

Create an instance of `https://developer.android.com/reference/android/telephony/ims/ProvisioningManager` for the subscription id specified.


Provides a ProvisioningManager instance to carrier apps to update carrier provisioning
information, as well as provides a callback so that apps can listen for changes
in MMTEL/RCS provisioning

<br />

| Parameters ||
|---|---|
| `subscriptionId` | `int`: The ID of the subscription that this ProvisioningManager will use. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telephony/ims/ProvisioningManager` | a ProvisioningManager instance with the specific subscription ID. This value cannot be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the subscription is invalid. |