DevicePolicyManager.IsResetPasswordTokenActive(ComponentName) 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.
Called by a profile, device owner or a holder of the permission
android.Manifest.permission#MANAGE_DEVICE_POLICY_RESET_PASSWORD
to check if the current reset password token is active.
[Android.Runtime.Register("isResetPasswordTokenActive", "(Landroid/content/ComponentName;)Z", "GetIsResetPasswordTokenActive_Landroid_content_ComponentName_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_RESET_PASSWORD")]
public virtual bool IsResetPasswordTokenActive (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("isResetPasswordTokenActive", "(Landroid/content/ComponentName;)Z", "GetIsResetPasswordTokenActive_Landroid_content_ComponentName_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_RESET_PASSWORD")>]
abstract member IsResetPasswordTokenActive : Android.Content.ComponentName -> bool
override this.IsResetPasswordTokenActive : Android.Content.ComponentName -> bool
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
Returns
true if the token is active, false otherwise.
- Attributes
Remarks
Called by a profile, device owner or a holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_RESET_PASSWORD
to check if the current reset password token is active.
On devices not supporting PackageManager#FEATURE_SECURE_LOCK_SCREEN
feature, false is always returned.
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.