Skip to main content

Function: setGeolocationPermissionAllowed()

function 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