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:

Parameter Type Description
event "quit" The event name.
listener (event: ElectronEvent, exitCode: number) => void The event handler.

Returns: thisThis ElectronApp instance.