Skip to content

ElectronApp.on('quit') method

ElectronApp › on(‘quit’)

Unofficial

Registers a listener for the quit event.

Emitted when the application is quitting.

Signature:

on(event: "quit", listener: (event: ElectronEvent, exitCode: number) => void): this

Parameters:

ParameterTypeDescription
event"quit"The event name.
listener(event: ElectronEvent, exitCode: number) => voidThe event handler.

Returns: thisThis ElectronApp instance.