Skip to main content

useExitAppListener

Functions

default()

default(toggleShortcut, themeAppearance, managerWidgetStates): void

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
toggleShortcutnull | stringThe current toggle shortcut.
themeAppearanceThemeAppearanceThe current theme appearance.
managerWidgetStatesIdMap<ManagerWidgetState>The current manager widget states.

Returns

void

Defined in

manager/hooks/useExitAppListener.ts:17