DeviceAdminInfo.UsesPolicyWatchLogin Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.DeviceAdminUses enum directly instead of this field.

A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver#ACTION_PASSWORD_FAILED, DeviceAdminReceiver#ACTION_PASSWORD_SUCCEEDED, and DevicePolicyManager#getCurrentFailedPasswordAttempts.

[Android.Runtime.Register("USES_POLICY_WATCH_LOGIN")]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.DeviceAdminUses enum directly instead of this field.", true)]
public const Android.App.Admin.DeviceAdminUses UsesPolicyWatchLogin = 1;
[<Android.Runtime.Register("USES_POLICY_WATCH_LOGIN")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.DeviceAdminUses enum directly instead of this field.", true)>]
val mutable UsesPolicyWatchLogin : Android.App.Admin.DeviceAdminUses

Field Value

Value = 1

Implements

Attributes

Remarks

A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver#ACTION_PASSWORD_FAILED, DeviceAdminReceiver#ACTION_PASSWORD_SUCCEEDED, and DevicePolicyManager#getCurrentFailedPasswordAttempts.

To control this policy, the device admin must have a "watch-login" tag in the "uses-policies" section of its meta-data.

Java documentation for android.app.admin.DeviceAdminInfo.USES_POLICY_WATCH_LOGIN.

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