DeviceSettings.ScreenLockComplexity

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 functions

java-static DeviceSettings.ScreenLockComplexity!
valueOf(name: String!)

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

java-static Array<DeviceSettings.ScreenLockComplexity!>!

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

Enum Values

HIGH

val DeviceSettings.ScreenLockComplexity.HIGHDeviceSettings.ScreenLockComplexity

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

LOW

val DeviceSettings.ScreenLockComplexity.LOWDeviceSettings.ScreenLockComplexity

A pattern or a PIN with repeating or ordered sequences.

MEDIUM

val DeviceSettings.ScreenLockComplexity.MEDIUMDeviceSettings.ScreenLockComplexity

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

Public functions

valueOf

java-static fun valueOf(name: String!): DeviceSettings.ScreenLockComplexity!

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

java-static fun values(): Array<DeviceSettings.ScreenLockComplexity!>!

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
Array<DeviceSettings.ScreenLockComplexity!>!

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