Skip to content

ElectronNativeTheme.once method

ElectronNativeTheme › once

Unofficial

Registers a one-time listener for the updated event. The listener is removed after it is invoked once.

Signature:

once(event: "updated", listener: () => void): this

Parameters:

Parameter Type Description
event "updated" The event name.
listener () => void The event handler.

Returns: thisThis ElectronNativeTheme instance.