Language

AdvancedProtectionManager.RegisterAdvancedProtectionCallback Method

Definition

Registers a Callback to be notified of changes to the Advanced Protection state.

[Android.Runtime.Register("registerAdvancedProtectionCallback", "(Ljava/util/concurrent/Executor;Landroid/security/advancedprotection/AdvancedProtectionManager$Callback;)V", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.QUERY_ADVANCED_PROTECTION_MODE")]
public void RegisterAdvancedProtectionCallback(Java.Util.Concurrent.IExecutor executor, Android.Security.AdvancedProtection.AdvancedProtectionManager.ICallback callback);
[<Android.Runtime.Register("registerAdvancedProtectionCallback", "(Ljava/util/concurrent/Executor;Landroid/security/advancedprotection/AdvancedProtectionManager$Callback;)V", "", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.QUERY_ADVANCED_PROTECTION_MODE")>]
member this.RegisterAdvancedProtectionCallback : Java.Util.Concurrent.IExecutor * Android.Security.AdvancedProtection.AdvancedProtectionManager.ICallback -> unit

Parameters

executor
IExecutor

The executor of where the callback will execute. 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.

callback
AdvancedProtectionManager.ICallback

The Callback object to register.. This value cannot be null.

Attributes

Remarks

Registers a Callback to be notified of changes to the Advanced Protection state.

Android reference for android.security.advancedprotection.AdvancedProtectionManager.registerAdvancedProtectionCallback.

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