Skip to content

ElectronApp.on('will-quit') method

ElectronApp › on(‘will-quit’)

Unofficial

Registers a listener for the will-quit event.

Emitted when all windows have been closed and the application will quit.

Signature:

on($event: "will-quit", listener: ($event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
$event"will-quit"
listener($event: ElectronEvent) => voidThe event handler.

Returns: this — This ElectronApp instance.