setAppState
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / main/state/appState / setAppState
Function: setAppState()
setAppState<
Path>(statePath:Path,value:MainAppStateValueByPath[Path],options?:StateUpdateOptions):void
Defined in: main/state/appState.ts:214
Persists a value into main process state.
Type Parametersβ
Pathβ
Path extends "appIsQuitting" | "autoUpdater.status" | "autoUpdater.updateDownloaded" | "autoUpdaterInitialized" | "gyazoServer" | "gyazoServerPort" | "loadedFitFilePath" | "mainWindow" | "permissions.geolocation.allowed"
Parametersβ
statePathβ
Path
Dot-notation path to update.
valueβ
MainAppStateValueByPath[Path]
Value to persist.
options?β
StateUpdateOptions
Additional metadata forwarded to the state manager.
Returnsβ
void