Android.App.Admin.DeviceAdminInfo.UsesPolicyForceLock Field
A type of policy that this device admin can use: able to force the device to lock viaDevicePolicyManager.LockNow or limit the maximum lock timeout for the device via DevicePolicyManager.SetMaximumTimeToLock(Android.Content.ComponentName, System.Int64).

Value: 3

Syntax

[Android.Runtime.Register("USES_POLICY_FORCE_LOCK")]
[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 UsesPolicyForceLock

Remarks

A type of policy that this device admin can use: able to force the device to lock viaDevicePolicyManager.LockNow or limit the maximum lock timeout for the device via DevicePolicyManager.SetMaximumTimeToLock(Android.Content.ComponentName, System.Int64).

To control this policy, the device admin must have a "force-lock" 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