ProvisioningManager.RegisterFeatureProvisioningChangedCallback 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.
Register a new FeatureProvisioningCallback, which is used to listen for IMS feature provisioning updates.
[Android.Runtime.Register("registerFeatureProvisioningChangedCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/ProvisioningManager$FeatureProvisioningCallback;)V", "GetRegisterFeatureProvisioningChangedCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_ProvisioningManager_FeatureProvisioningCallback_Handler", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual void RegisterFeatureProvisioningChangedCallback(Java.Util.Concurrent.IExecutor executor, Android.Telephony.Ims.ProvisioningManager.FeatureProvisioningCallback callback);
[<Android.Runtime.Register("registerFeatureProvisioningChangedCallback", "(Ljava/util/concurrent/Executor;Landroid/telephony/ims/ProvisioningManager$FeatureProvisioningCallback;)V", "GetRegisterFeatureProvisioningChangedCallback_Ljava_util_concurrent_Executor_Landroid_telephony_ims_ProvisioningManager_FeatureProvisioningCallback_Handler", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member RegisterFeatureProvisioningChangedCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.ProvisioningManager.FeatureProvisioningCallback -> unit
override this.RegisterFeatureProvisioningChangedCallback : Java.Util.Concurrent.IExecutor * Android.Telephony.Ims.ProvisioningManager.FeatureProvisioningCallback -> unit
Parameters
- executor
- IExecutor
The executor that the callback methods will be called on. 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.
The callback instance being registered. This value cannot be null.
- Attributes
Remarks
Register a new FeatureProvisioningCallback, which is used to listen for IMS feature provisioning updates.
When the subscription associated with this callback is removed (SIM removed, ESIM swap,etc...), this callback will automatically be removed.
Requires Permission: android.Manifest.permission#READ_PRIVILEGED_PHONE_STATE, Manifest.permission.READ_PRECISE_PHONE_STATE, or that the caller has carrier privileges (see TelephonyManager.hasCarrierPrivileges()).
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.