ElectronApp.on('will-quit') method
ElectronApp › on(‘will-quit’)
Unofficial
Registers a listener for thewill-quit event.Emitted when all windows have been closed and the application will quit.
Signature:
on(event: "will-quit", listener: (event: ElectronEvent) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "will-quit" | The event name. |
| listener | (event: ElectronEvent) => void | The event handler. |
Returns: this — This ElectronApp instance.