ImsManager


public class ImsManager
extends Object

java.lang.Object
   ↳ android.telephony.ims.ImsManager


Provides access to information about Telephony IMS services on the device.
Requires the PackageManager#FEATURE_TELEPHONY_IMS feature which can be detected using PackageManager.hasSystemFeature(String).

Summary

Constants

String ACTION_WFC_IMS_REGISTRATION_ERROR

An intent action indicating that IMS registration for WiFi calling has resulted in an error.

String EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE

An extra key corresponding to a 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.

String EXTRA_WFC_REGISTRATION_FAILURE_TITLE

An extra key corresponding to a 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

ImsMmTelManager getImsMmTelManager(int subscriptionId)

Create an instance of ImsMmTelManager for the subscription id specified.

ImsRcsManager getImsRcsManager(int subscriptionId)

Create an instance of ImsRcsManager for the subscription id specified.

ProvisioningManager getProvisioningManager(int subscriptionId)

Create an instance of ProvisioningManager for the subscription id specified.

Inherited methods

Constants

ACTION_WFC_IMS_REGISTRATION_ERROR

Added in API level 30
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: EXTRA_WFC_REGISTRATION_FAILURE_TITLE and 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 BroadcastReceiver.setResultCode(int) with 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.

Constant Value: "android.telephony.ims.action.WFC_IMS_REGISTRATION_ERROR"

EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE

Added in API level 30
public static final String EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE

An extra key corresponding to a 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.

Constant Value: "android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_MESSAGE"

EXTRA_WFC_REGISTRATION_FAILURE_TITLE

Added in API level 30
public static final String EXTRA_WFC_REGISTRATION_FAILURE_TITLE

An extra key corresponding to a 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.

Constant Value: "android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_TITLE"

Public methods

getImsMmTelManager

Added in API level 30
public ImsMmTelManager getImsMmTelManager (int subscriptionId)

Create an instance of ImsMmTelManager for the subscription id specified.

Parameters
subscriptionId int: The ID of the subscription that this ImsMmTelManager will use.

Returns
ImsMmTelManager a ImsMmTelManager instance with the specific subscription ID. This value cannot be null.

Throws
IllegalArgumentException if the subscription is invalid.

getImsRcsManager

Added in API level 30
public ImsRcsManager getImsRcsManager (int subscriptionId)

Create an instance of ImsRcsManager for the subscription id specified.

Parameters
subscriptionId int: The ID of the subscription that this ImsRcsManager will use.

Returns
ImsRcsManager a ImsRcsManager instance with the specific subscription ID. This value cannot be null.

Throws
IllegalArgumentException if the subscription is invalid.

getProvisioningManager

Added in API level 33
public ProvisioningManager getProvisioningManager (int subscriptionId)

Create an instance of 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

Parameters
subscriptionId int: The ID of the subscription that this ProvisioningManager will use.

Returns
ProvisioningManager a ProvisioningManager instance with the specific subscription ID. This value cannot be null.

Throws
IllegalArgumentException if the subscription is invalid.