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
Parameter | Type | Description |
---|---|---|
toggleShortcut | null | string | The current toggle shortcut. |
themeAppearance | ThemeAppearance | The current theme appearance. |
managerWidgetStates | IdMap <ManagerWidgetState > | The current manager widget states. |
Returns
void