IRegistrationManager.GetRegistrationState(IExecutor, IConsumer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: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 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: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 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: #REGISTRATION_STATE_NOT_REGISTERED
,
#REGISTRATION_STATE_REGISTERING
, or
#REGISTRATION_STATE_REGISTERED
.
- Attributes
Remarks
Gets the registration state of the IMS service.
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.