DeviceSettings.ScreenLockComplexity

public enum DeviceSettings.ScreenLockComplexity


Complexity of the screen lock used to protect the device or the profile.

Summary

Enum Values

COMPLEXITY_UNSPECIFIED

This value is disallowed.

HIGH

A PIN of length at least 8 without repeating or ordered sequences, or a password of length at least 6.

LOW

A pattern or a PIN with repeating or ordered sequences.

MEDIUM

A PIN without repeating or ordered sequences, or a password of length at least 4.

NONE

No password on the device.

Public methods

static DeviceSettings.ScreenLockComplexity

Returns the enum constant of this type with the specified name.

static DeviceSettings.ScreenLockComplexity[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

HIGH

DeviceSettings.ScreenLockComplexity DeviceSettings.ScreenLockComplexity.HIGH

A PIN of length at least 8 without repeating or ordered sequences, or a password of length at least 6.

LOW

DeviceSettings.ScreenLockComplexity DeviceSettings.ScreenLockComplexity.LOW

A pattern or a PIN with repeating or ordered sequences.

MEDIUM

DeviceSettings.ScreenLockComplexity DeviceSettings.ScreenLockComplexity.MEDIUM

A PIN without repeating or ordered sequences, or a password of length at least 4.

Public methods

valueOf

public static DeviceSettings.ScreenLockComplexity valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
DeviceSettings.ScreenLockComplexity

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static DeviceSettings.ScreenLockComplexity[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
DeviceSettings.ScreenLockComplexity[]

an array containing the constants of this enum type, in the order they're declared