Skip to content

ElectronApp.on('before-quit') method

ElectronApp › on(‘before-quit’)

Unofficial

Registers a listener for the before-quit event.

Emitted before the application starts closing its windows.

Signature:

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

Parameters:

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

Returns: thisThis ElectronApp instance.