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
| Property | Type | Description | Defined in |
|---|---|---|---|
action | () => Promise<void> | performs the correct next step for the current phase (download → restart → retry). | types.ts:129 |
blocking | boolean | the update is mandatory: the host should not let the user dismiss or defer this UI. | types.ts:127 |
busy | boolean | an operation is in flight — show a spinner and keep the action inert. | types.ts:123 |
cta | string | null | - | types.ts:119 |
ctaEnabled | boolean | false while an action is running, or when the phase has no action. | types.ts:121 |
description | string | - | types.ts:118 |
phase | OtaPhase | - | types.ts:114 |
progress | number | null | 0..1 when known, null when the download reports no granular progress (show indeterminate). | types.ts:125 |
title | string | - | types.ts:117 |
visible | boolean | convenience for phase !== 'none'. | types.ts:116 |