Device.WorkProfileState

public 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 methods

static Device.WorkProfileState

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

static Device.WorkProfileState[]

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

Enum Values

WORK_PROFILE_NOT_PRESENT

Device.WorkProfileState Device.WorkProfileState.WORK_PROFILE_NOT_PRESENT

There is no work profile on the device.

WORK_PROFILE_PRESENT

Device.WorkProfileState Device.WorkProfileState.WORK_PROFILE_PRESENT

There is a work profile on the device.

WORK_PROFILE_STATE_UNSPECIFIED

Device.WorkProfileState Device.WorkProfileState.WORK_PROFILE_STATE_UNSPECIFIED

Work profile state is unspecified.

Public methods

valueOf

public static Device.WorkProfileState 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
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

public static Device.WorkProfileState[] 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
Device.WorkProfileState[]

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