Sdílet prostřednictvím


ImsRcsManager.GetRegistrationState(IExecutor, IConsumer) Method

Definition

Gets the registration state of the IMS service.

[Android.Runtime.Register("getRegistrationState", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetRegistrationState_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual void GetRegistrationState (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer stateCallback);
[<Android.Runtime.Register("getRegistrationState", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetRegistrationState_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member GetRegistrationState : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetRegistrationState : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

executor
IExecutor

The Executor that will be used to call the IMS registration state callback.

stateCallback
IConsumer

A callback called on the supplied Executor that will contain the registration state of the IMS service, which will be one of the following: RegistrationManager#REGISTRATION_STATE_NOT_REGISTERED, RegistrationManager#REGISTRATION_STATE_REGISTERING, or RegistrationManager#REGISTRATION_STATE_REGISTERED.

Attributes

Remarks

Gets the registration state of the IMS service.

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.ImsRcsManager.getRegistrationState(java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>).

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