Skip to content

ElectronSystemPreferences.on('color-changed') method

ElectronSystemPreferences › on(‘color-changed’)

Unofficial

Registers a listener for the color-changed event.

Signature:

on(event: "color-changed", listener: (event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
event"color-changed"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis ElectronSystemPreferences instance.