Device.WorkProfileState

enum Device.WorkProfileState


State that indicates if there is a work profile on the device.

Summary

Enum Values

WORK_PROFILE_NOT_PRESENT

There is no work profile on the device.

WORK_PROFILE_PRESENT

There is a work profile on the device.

WORK_PROFILE_STATE_UNSPECIFIED

Work profile state is unspecified.

Public functions

java-static Device.WorkProfileState!
valueOf(name: String!)

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

java-static Array<Device.WorkProfileState!>!

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

Enum Values

WORK_PROFILE_NOT_PRESENT

val Device.WorkProfileState.WORK_PROFILE_NOT_PRESENTDevice.WorkProfileState

There is no work profile on the device.

WORK_PROFILE_PRESENT

val Device.WorkProfileState.WORK_PROFILE_PRESENTDevice.WorkProfileState

There is a work profile on the device.

WORK_PROFILE_STATE_UNSPECIFIED

val Device.WorkProfileState.WORK_PROFILE_STATE_UNSPECIFIEDDevice.WorkProfileState

Work profile state is unspecified.

Public functions

valueOf

java-static fun valueOf(name: String!): Device.WorkProfileState!

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
Device.WorkProfileState!

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<Device.WorkProfileState!>!

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<Device.WorkProfileState!>!

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