SystemUpdate.SystemUpdateState.Builder

public abstract class SystemUpdate.SystemUpdateState.Builder


Builder for SystemUpdate.SystemUpdateState.

Summary

Public methods

build

public abstract SystemUpdate.SystemUpdateState build()

clearReason

public SystemUpdate.SystemUpdateState.Builder clearReason()

Clears any previously set Reason.

setAbortReason

public SystemUpdate.SystemUpdateState.Builder setAbortReason(SystemUpdate.SystemUpdateState.AbortReason value)

Abort reason. An update is aborted when it is no longer available.

setAbortReason

public SystemUpdate.SystemUpdateState.Builder setAbortReason(
    SystemUpdate.SystemUpdateState.AbortReason.Builder value
)

Abort reason. An update is aborted when it is no longer available.

setOverrideReason

public SystemUpdate.SystemUpdateState.Builder setOverrideReason(SystemUpdate.SystemUpdateState.OverrideReason value)

Override reason. An instruction is overridden when the OTA client proceeds with the update stage despite the BLOCK instruction or proceeds with the update stage without user confirmation for the USER_PROMPT instruction. When an instruction is overridden, a reason must be provided.

setOverrideReason

public SystemUpdate.SystemUpdateState.Builder setOverrideReason(
    SystemUpdate.SystemUpdateState.OverrideReason.Builder value
)

Override reason. An instruction is overridden when the OTA client proceeds with the update stage despite the BLOCK instruction or proceeds with the update stage without user confirmation for the USER_PROMPT instruction. When an instruction is overridden, a reason must be provided.

setPreventionReason

public SystemUpdate.SystemUpdateState.Builder setPreventionReason(
    SystemUpdate.SystemUpdateState.PreventionReason value
)

Prevention reason. An instruction is prevented when the OTA client is instructed to FORCE proceed or the client is instructed to USER_PROMPT and the user has provided confirmation but the OTA client is prevented from proceeding. (e.g., insufficient battery, no network).

setPreventionReason

public SystemUpdate.SystemUpdateState.Builder setPreventionReason(
    SystemUpdate.SystemUpdateState.PreventionReason.Builder value
)

Prevention reason. An instruction is prevented when the OTA client is instructed to FORCE proceed or the client is instructed to USER_PROMPT and the user has provided confirmation but the OTA client is prevented from proceeding. (e.g., insufficient battery, no network).