Ready

data class Ready(val release: FirmwareRelease?, val deviceHardware: DeviceHardware, val address: String, val showBootloaderWarning: Boolean, val updateMethod: FirmwareUpdateMethod, val currentFirmwareVersion: String? = null, val isRecovery: Boolean = false, val maintenance: UsbMaintenanceGate = UsbMaintenanceGate(), val bootloader: BootloaderStatus? = null, val bleBootloaderUpgrade: BootloaderDfuZip? = null) : FirmwareUpdateState(source)

Device and release info resolved; the user may initiate an update.

Constructors

Link copied to clipboard
constructor(release: FirmwareRelease?, deviceHardware: DeviceHardware, address: String, showBootloaderWarning: Boolean, updateMethod: FirmwareUpdateMethod, currentFirmwareVersion: String? = null, isRecovery: Boolean = false, maintenance: UsbMaintenanceGate = UsbMaintenanceGate(), bootloader: BootloaderStatus? = null, bleBootloaderUpgrade: BootloaderDfuZip? = null)

Properties

Link copied to clipboard

Bare device address with the InterfaceId transport prefix stripped (e.g. MAC or IP).

Link copied to clipboard

The package a BLE bootloader upgrade would install; null when none is offered.

Link copied to clipboard

The bootloader the connected device reports, on any transport; null when it reports none.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

True when reached while disconnected to re-flash a device stranded in bootloader mode after an interrupted update (see FirmwareUpdateViewModel.checkForUpdates). Drives recovery-specific copy and routing.

Link copied to clipboard

Which USB maintenance affordances to show, precomputed by the ViewModel so the screen stays dumb and the decision stays unit-testable — the same shape as showBootloaderWarning.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

The game is offered only while an update runs unattended. Null means the update needs the user (a file to save, a bootloader to review, a cancel back to Ready), so the game closes rather than covering the screen that asks.