ElectronTray.on('drag-enter') method
ElectronTray › on(‘drag-enter’)
Unofficial
Registers a listener that is invoked when a drag operation enters the tray icon.darwin only. Signature:
on(event: "drag-enter", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "drag-enter" | The event name. |
| listener | () => void | The event handler. |
Returns: this — This tray instance.