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:

ParameterTypeDescription
event"window-all-closed"The event name.
listener(...args: unknown[]) => voidThe event handler.

Returns: thisThis ElectronApp instance.