SystemUpdate.SystemUpdateState.Builder

abstract class SystemUpdate.SystemUpdateState.Builder


Builder for SystemUpdate.SystemUpdateState.

Summary

Public functions

build

abstract fun build(): SystemUpdate.SystemUpdateState!

clearReason

fun clearReason(): SystemUpdate.SystemUpdateState.Builder!

Clears any previously set Reason.

setAbortReason

fun setAbortReason(value: SystemUpdate.SystemUpdateState.AbortReason!): SystemUpdate.SystemUpdateState.Builder!

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

setAbortReason

fun setAbortReason(
    value: SystemUpdate.SystemUpdateState.AbortReason.Builder!
): SystemUpdate.SystemUpdateState.Builder!

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

setOverrideReason

fun setOverrideReason(value: SystemUpdate.SystemUpdateState.OverrideReason!): SystemUpdate.SystemUpdateState.Builder!

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

fun setOverrideReason(
    value: SystemUpdate.SystemUpdateState.OverrideReason.Builder!
): SystemUpdate.SystemUpdateState.Builder!

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

fun setPreventionReason(
    value: SystemUpdate.SystemUpdateState.PreventionReason!
): SystemUpdate.SystemUpdateState.Builder!

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

fun setPreventionReason(
    value: SystemUpdate.SystemUpdateState.PreventionReason.Builder!
): SystemUpdate.SystemUpdateState.Builder!

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).