Android.App.Admin.DeviceAdminInfo.UsesPolicyWatchLogin Field
A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver.ActionPasswordFailed, DeviceAdminReceiver.ActionPasswordSucceeded, and DevicePolicyManager.CurrentFailedPasswordAttempts.

Value: 1

Syntax

[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.")]
public const DeviceAdminUses UsesPolicyWatchLogin

Remarks

A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver.ActionPasswordFailed, DeviceAdminReceiver.ActionPasswordSucceeded, and DevicePolicyManager.CurrentFailedPasswordAttempts.

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

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8