Skip to content

ElectronScreen.on('display-removed') method

ElectronScreen › on(‘display-removed’)

Unofficial

Registers a listener for the display-removed event.

Signature:

on($event: "display-removed", listener: ($event: ElectronEvent, oldDisplay: ElectronDisplay) => void): this

Parameters:

ParameterTypeDescription
$event"display-removed"
listener($event: ElectronEvent, oldDisplay: ElectronDisplay) => voidThe event handler.

Returns: this — This ElectronScreen instance.