Instruction.InstructionType

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 functions

java-static Instruction.InstructionType!
valueOf(name: String!)

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

java-static Array<Instruction.InstructionType!>!

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

Enum Values

BLOCK

val Instruction.InstructionType.BLOCKInstruction.InstructionType

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

DEFAULT

val Instruction.InstructionType.DEFAULTInstruction.InstructionType

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

val Instruction.InstructionType.FORCEInstruction.InstructionType

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

val Instruction.InstructionType.INSTRUCTION_TYPE_UNSPECIFIEDInstruction.InstructionType

Default value. This is not used.

USER_PROMPT

val Instruction.InstructionType.USER_PROMPTInstruction.InstructionType

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

Public functions

valueOf

java-static fun valueOf(name: String!): Instruction.InstructionType!

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

java-static fun values(): Array<Instruction.InstructionType!>!

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<Instruction.InstructionType!>!

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