Skip to main content

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.