Skip to content

ElectronNotification.on('close') method

ElectronNotification › on(‘close’)

Unofficial

Registers an event listener that is invoked when the notification is closed by manual intervention from the user.

Signature:

on(event: "close", listener: (event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
event"close"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis notification instance.