Skip to main content

useExitAppListener

Functions

default()

default(toggleShortcut, appearance, managerWidgetStates): void

Defined in: manager/hooks/useExitAppListener.ts:17

Listen and react to the "exit-app" event.

Upon receiving the event, the hook will collect all current states that needs to be persisted and invoke the backend to persist them and exit the app.

Parameters

ParameterTypeDescription
toggleShortcutundefined | stringThe current toggle shortcut.
appearanceAppearanceThe current theme appearance.
managerWidgetStatesRecord<string, ManagerWidgetState>The current manager widget states.

Returns

void