Dela via


ImsMmTelManager.RegisterImsStateCallback(IExecutor, ImsStateCallback) Method

Definition

Register a new callback, which is used to notify the registrant of changes to the state of the underlying IMS service that is attached to telephony to implement IMS functionality.

[Android.Runtime.Register("registerImsStateCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/ImsStateCallback;)V", "GetRegisterImsStateCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_ImsStateCallback_Handler", ApiSince=33)]
public virtual void RegisterImsStateCallback (Java.Util.Concurrent.IExecutor executor, Android.Telephony.Ims.ImsStateCallback callback);
[<Android.Runtime.Register("registerImsStateCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/ImsStateCallback;)V", "GetRegisterImsStateCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_ImsStateCallback_Handler", ApiSince=33)>]
abstract member RegisterImsStateCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.ImsStateCallback -> unit
override this.RegisterImsStateCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.ImsStateCallback -> unit

Parameters

executor
IExecutor

the Executor that will be used to call the ImsStateCallback.

callback
ImsStateCallback

The callback instance being registered.

Attributes

Remarks

Register a new callback, which is used to notify the registrant of changes to the state of the underlying IMS service that is attached to telephony to implement IMS functionality. If the manager is created for the SubscriptionManager#DEFAULT_SUBSCRIPTION_ID, this throws an ImsException.

Requires Permission: android.Manifest.permission#READ_PRECISE_PHONE_STATE READ_PRECISE_PHONE_STATE or that the calling app has carrier privileges (see android.telephony.TelephonyManager#hasCarrierPrivileges).

Java documentation for android.telephony.ims.ImsMmTelManager.registerImsStateCallback(java.util.concurrent.Executor, android.telephony.ims.ImsStateCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to