Udostępnij za pośrednictwem


DevicePolicyManager.GetPasswordMinimumNumeric(ComponentName) Method

Definition

Retrieve the current number of numerical digits required in the password for a particular admin or all admins that set restrictions on this user and its participating profiles.

[Android.Runtime.Register("getPasswordMinimumNumeric", "(Landroid/content/ComponentName;)I", "GetGetPasswordMinimumNumeric_Landroid_content_ComponentName_Handler")]
public virtual int GetPasswordMinimumNumeric (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getPasswordMinimumNumeric", "(Landroid/content/ComponentName;)I", "GetGetPasswordMinimumNumeric_Landroid_content_ComponentName_Handler")>]
abstract member GetPasswordMinimumNumeric : Android.Content.ComponentName -> int
override this.GetPasswordMinimumNumeric : Android.Content.ComponentName -> int

Parameters

admin
ComponentName

The name of the admin component to check, or null to aggregate all admins.

Returns

The minimum number of numerical digits required in the password.

Attributes

Remarks

Retrieve the current number of numerical digits required in the password for a particular admin or all admins that set restrictions on this user and its participating profiles. Restrictions on profiles that have a separate challenge are not taken into account. This is the same value as set by #setPasswordMinimumNumeric(ComponentName, int) and only applies when the password quality is #PASSWORD_QUALITY_COMPLEX.

On devices not supporting PackageManager#FEATURE_SECURE_LOCK_SCREEN feature, the password is always treated as empty.

This method can be called on the DevicePolicyManager instance returned by #getParentProfileInstance(ComponentName) in order to retrieve restrictions on the parent profile.

This member is deprecated. see #setPasswordQuality(ComponentName, int) for details.

Java documentation for android.app.admin.DevicePolicyManager.getPasswordMinimumNumeric(android.content.ComponentName).

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