Skip to main content

setGeolocationPermissionAllowed

FitFileViewer - API Documentation v30.0.1


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

Function: setGeolocationPermissionAllowed()

setGeolocationPermissionAllowed(allowed: boolean | null, options?: StateUpdateOptions): void

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

Caches the geolocation permission decision for this app session.

Parameters​

allowed​

boolean | null

Allow/deny decision, or null to clear the cached decision.

options?​

StateUpdateOptions

Additional metadata forwarded to the state manager.

Returns​

void