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.

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.