ElectronTray.on('drop') method
ElectronTray › on(‘drop’)
Unofficial
Registers a listener that is invoked when any dragged items are dropped on the tray icon.darwin only.Signature:
on($event: "drop", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "drop" | |
| listener | () => void | The event handler. |
Returns: this — This tray instance.