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:

Parameter Type Description
event "will-quit" The event name.
listener (event: ElectronEvent) => void The event handler.

Returns: thisThis ElectronApp instance.