Skip to main content

Interface: OtaUi

Defined in: types.ts:113

A ready-to-render view model for the update UI. Everything a row/banner/modal needs, so the host renders it and calls OtaUi.action — no status mapping, no in-flight guard, no branching between download and restart.

Properties​

PropertyTypeDescriptionDefined in
action() => Promise<void>performs the correct next step for the current phase (download → restart → retry).types.ts:129
blockingbooleanthe update is mandatory: the host should not let the user dismiss or defer this UI.types.ts:127
busybooleanan operation is in flight — show a spinner and keep the action inert.types.ts:123
ctastring | null-types.ts:119
ctaEnabledbooleanfalse while an action is running, or when the phase has no action.types.ts:121
descriptionstring-types.ts:118
phaseOtaPhase-types.ts:114
progressnumber | null0..1 when known, null when the download reports no granular progress (show indeterminate).types.ts:125
titlestring-types.ts:117
visiblebooleanconvenience for phase !== 'none'.types.ts:116