UsbMaintenanceGate
data class UsbMaintenanceGate(val show: Boolean = false, val eraseRefusal: UsbMaintenanceRefusal? = null, val showBootloaderUpgrade: Boolean = false, val latestBootloader: String? = null)(source)
Which maintenance affordances the Ready state should show, precomputed by the ViewModel.
Follows the showBootloaderWarning precedent: the screen stays dumb and the decision stays unit-testable.
Constructors
Link copied to clipboard
constructor(show: Boolean = false, eraseRefusal: UsbMaintenanceRefusal? = null, showBootloaderUpgrade: Boolean = false, latestBootloader: String? = null)
Properties
Link copied to clipboard
Non-null when erase is shown but cannot run; the reason is displayed and the action disabled.
Link copied to clipboard
The OTAFIX release the upgrade installs, shown next to the action only while the device reports no bootloader version; otherwise the device card shows installed against latest.
Link copied to clipboard
Whether a bootloader-upgrade action is offered. Absent (not refused) when no image is mapped for the board — an unmapped board is a coverage gap, not a safety decision the user can act on.