getAppState
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / main/state/appState / getAppState
Function: getAppState()
getAppState<
Path>(statePath:Path):MainAppStateValueByPath[Path]
Defined in: main/state/appState.ts:83
Returns the current value for a state key from the main process state manager.
Type Parametersβ
Pathβ
Path extends "appIsQuitting" | "autoUpdater.status" | "autoUpdater.updateDownloaded" | "autoUpdaterInitialized" | "gyazoServer" | "gyazoServerPort" | "loadedFitFilePath" | "mainWindow" | "permissions.geolocation.allowed"
Parametersβ
statePathβ
Path
Dot-notation state path, for example "fitFile.lastResult".
Returnsβ
MainAppStateValueByPath[Path]
Stored state value.