Skip to content

ElectronApp.on('window-all-closed') method

ElectronApp › on(‘window-all-closed’)

Unofficial

Registers a listener for the window-all-closed event.

Emitted when all windows have been closed.

Signature:

on(event: "window-all-closed", listener: (...args: unknown[]) => void): this

Parameters:

Parameter Type Description
event "window-all-closed" The event name.
listener (...args: unknown[]) => void The event handler.

Returns: thisThis ElectronApp instance.