DevicePolicyManager.GetPasswordMaximumLength(PasswordQuality) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the maximum password length that the device supports for a particular password quality.
[Android.Runtime.Register("getPasswordMaximumLength", "(I)I", "GetGetPasswordMaximumLength_IHandler")]
public virtual int GetPasswordMaximumLength (Android.App.Admin.PasswordQuality quality);
[<Android.Runtime.Register("getPasswordMaximumLength", "(I)I", "GetGetPasswordMaximumLength_IHandler")>]
abstract member GetPasswordMaximumLength : Android.App.Admin.PasswordQuality -> int
override this.GetPasswordMaximumLength : Android.App.Admin.PasswordQuality -> int
Parameters
- quality
- PasswordQuality
The quality being interrogated.
Returns
Returns the maximum length that the user can enter.
- Attributes
Remarks
Return the maximum password length that the device supports for a particular password quality.
On devices not supporting PackageManager#FEATURE_SECURE_LOCK_SCREEN
feature, the password is always empty and this method always returns 0.
Java documentation for android.app.admin.DevicePolicyManager.getPasswordMaximumLength(int)
.
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.