AwaitingFileSave

data class AwaitingFileSave(val uf2Artifact: FirmwareArtifact?, val fileName: String?, val step: UsbFileSaveStep = UsbFileSaveStep.Firmware, val retryMessage: UiText? = null) : FirmwareUpdateState(source)

Waiting for the user to point the app at the device's UF2 drive (USB flow).

Constructors

Link copied to clipboard
constructor(uf2Artifact: FirmwareArtifact?, fileName: String?, step: UsbFileSaveStep = UsbFileSaveStep.Firmware, retryMessage: UiText? = null)

Properties

Link copied to clipboard

Display name of uf2Artifact, or null for the same reason.

Link copied to clipboard
val retryMessage: UiText?

Set when a previous attempt at this pass failed. Once a destructive image has been written the flow never abandons the user on an error screen — it re-publishes the same pass with an explanation.

Link copied to clipboard

Which leg of a multi-pass sequence this is. Also the recomposition key for the instruction dialog, so each pass re-shows its own instructions.

Link copied to clipboard

The image to write, when it is already downloaded and verified. null on a maintenance pass: erase and bootloader images are chosen from what the mounted volume reports about itself, so the image cannot be known until the volume has been picked.