Skip to main content

setAutoUpdaterState

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / main/state/appState / setAutoUpdaterState

Function: setAutoUpdaterState()

setAutoUpdaterState(status: "error" | "available" | "checking" | "downloaded" | "downloading" | "idle", updateDownloaded: boolean, options?: StateUpdateOptions): void

Defined in: main/state/appState.ts:285

Updates the paired auto-updater status and downloaded flag.

Parameters​

status​

"error" | "available" | "checking" | "downloaded" | "downloading" | "idle"

Auto-updater lifecycle status.

updateDownloaded​

boolean

True when an update is ready to install.

options?​

StateUpdateOptions

Additional metadata forwarded to the state manager.

Returns​

void