Język

IRegistrationManager.RegisterImsRegistrationCallback Method

Definition

Registers a RegistrationCallback with the system.

[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:Android.Telephony.Ims.IRegistrationManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")]
public 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:Android.Telephony.Ims.IRegistrationManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")>]
abstract member RegisterImsRegistrationCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.RegistrationManagerRegistrationCallback -> unit

Parameters

executor
IExecutor

The Executor that will be used to call the IMS registration state callback. 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.

Attributes

Remarks

Registers a RegistrationCallback with the system. Requires android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE

Android reference for android.telephony.ims.RegistrationManager.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