Language

ImsMmTelManager.RegisterImsRegistrationCallback Method

Definition

Registers an IMS registration callback.

[Android.Runtime.Register("registerImsRegistrationCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/RegistrationManager$RegistrationCallback;)V", "GetRegisterImsRegistrationCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_RegistrationManager_RegistrationCallback_Handler", ApiSince=30)]
public virtual void RegisterImsRegistrationCallback(Java.Util.Concurrent.IExecutor executor, Android.Telephony.Ims.RegistrationManagerRegistrationCallback c);
[<Android.Runtime.Register("registerImsRegistrationCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/RegistrationManager$RegistrationCallback;)V", "GetRegisterImsRegistrationCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_RegistrationManager_RegistrationCallback_Handler", ApiSince=30)>]
abstract member RegisterImsRegistrationCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.RegistrationManagerRegistrationCallback -> unit
override this.RegisterImsRegistrationCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.RegistrationManagerRegistrationCallback -> unit

Parameters

executor
IExecutor

This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

c
RegistrationManagerRegistrationCallback

The callback to register. It receives IMS registration state events on the supplied executor, including the current state when it is registered.

Implements

Attributes

Remarks

Registers a RegistrationCallback with the system.

Requires READ_PRECISE_PHONE_STATE or carrier privileges (see TelephonyManager.hasCarrierPrivileges()).

Android reference for android.telephony.ims.ImsMmTelManager.registerImsRegistrationCallback.

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