Instruction.InstructionType

public enum Instruction.InstructionType


The type of instruction to be enforced for a specific stage of the update process.

Summary

Enum Values

BLOCK

The action for this stage is prohibited.

DEFAULT

The OTA client should revert to its own default handling for this stage.

FORCE

The device must automatically perform the action for this stage without requiring user interaction.

INSTRUCTION_TYPE_UNSPECIFIED

Default value.

USER_PROMPT

The OTA client should prompt the end-user for confirmation before proceeding with this stage.

Public methods

static Instruction.InstructionType

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

static Instruction.InstructionType[]

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

Enum Values

BLOCK

Instruction.InstructionType Instruction.InstructionType.BLOCK

The action for this stage is prohibited. The OTA client must prevent this stage from being initiated or completed.

DEFAULT

Instruction.InstructionType Instruction.InstructionType.DEFAULT

The OTA client should revert to its own default handling for this stage. This may include respecting any on-device settings configured by the user or the OEM's default update behavior.

FORCE

Instruction.InstructionType Instruction.InstructionType.FORCE

The device must automatically perform the action for this stage without requiring user interaction. For example, force download the update or force install the update.

INSTRUCTION_TYPE_UNSPECIFIED

Instruction.InstructionType Instruction.InstructionType.INSTRUCTION_TYPE_UNSPECIFIED

Default value. This is not used.

USER_PROMPT

Instruction.InstructionType Instruction.InstructionType.USER_PROMPT

The OTA client should prompt the end-user for confirmation before proceeding with this stage.

Public methods

valueOf

public static Instruction.InstructionType 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
Instruction.InstructionType

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 Instruction.InstructionType[] 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
Instruction.InstructionType[]

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