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
Parameter | Type | Description |
---|---|---|
toggleShortcut | undefined | string | The current toggle shortcut. |
appearance | Appearance | The current theme appearance. |
managerWidgetStates | Record <string , ManagerWidgetState > | The current manager widget states. |
Returns
void