ElectronWebContents.on('cursor-changed') method
ElectronWebContents › on(‘cursor-changed’)
Unofficial
Registers a listener for thecursor-changed event. Signature:
on(event: "cursor-changed", listener: (event: ElectronEvent, type: string, image: ElectronNativeImage, scale: number, size: ElectronSize, hotspot: ElectronPoint) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "cursor-changed" | The event name. |
| listener | (event: ElectronEvent, type: string, image: ElectronNativeImage, scale: number, size: ElectronSize, hotspot: ElectronPoint) => void | Called when the cursor-changed event is emitted. |
Returns: this — This web contents instance.