ElectronApp.on('before-quit') method
ElectronApp › on(‘before-quit’)
Unofficial
Registers a listener for thebefore-quit event.Emitted before the application starts closing its windows.
Signature:
on($event: "before-quit", listener: ($event: ElectronEvent) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "before-quit" | |
| listener | ($event: ElectronEvent) => void | The event handler. |
Returns: this — This ElectronApp instance.