ElectronApp.on('window-all-closed') method
ElectronApp › on(‘window-all-closed’)
Unofficial
Registers a listener for thewindow-all-closed event.Emitted when all windows have been closed.
Signature:
on(event: "window-all-closed", listener: (...args: unknown[]) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "window-all-closed" | The event name. |
| listener | (...args: unknown[]) => void | The event handler. |
Returns: this — This ElectronApp instance.