Skip to content

ElectronWebContents.on('cursor-changed') method

ElectronWebContents › on(‘cursor-changed’)

Unofficial

Registers a listener for the cursor-changed event.

Signature:

on(event: "cursor-changed", listener: (event: ElectronEvent, type: string, image: ElectronNativeImage, scale: number, size: ElectronSize, hotspot: ElectronPoint) => void): this

Parameters:

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: thisThis web contents instance.