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:

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

Returns: this — This ElectronApp instance.