ElectronTray.on('balloon-closed') method
ElectronTray › on(‘balloon-closed’)
Unofficial
Registers a listener that is invoked when the tray balloon is closed because of timeout or user manually closes it.win32 only. Signature:
on(event: "balloon-closed", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "balloon-closed" | The event name. |
| listener | () => void | The event handler. |
Returns: this — This tray instance.