Udostępnij za pośrednictwem


DeviceAdminInfo.UsesPolicyLimitPassword 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: limit the passwords that the user can select, via DevicePolicyManager#setPasswordQuality and DevicePolicyManager#setPasswordMinimumLength.

[Android.Runtime.Register("USES_POLICY_LIMIT_PASSWORD")]
[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 UsesPolicyLimitPassword = 0;
[<Android.Runtime.Register("USES_POLICY_LIMIT_PASSWORD")>]
[<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 UsesPolicyLimitPassword : Android.App.Admin.DeviceAdminUses

Field Value

Value = 0

Implements

Attributes

Remarks

A type of policy that this device admin can use: limit the passwords that the user can select, via DevicePolicyManager#setPasswordQuality and DevicePolicyManager#setPasswordMinimumLength.

To control this policy, the device admin must be a device owner or profile owner, and must have a "limit-password" tag in the "uses-policies" section of its meta-data. If used by a device owner, the policy only affects the primary user and its profiles, but not any secondary users on the device.

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

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