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:

ParameterTypeDescription
event"updated"The event name.
listener() => voidThe event handler.

Returns: thisThis ElectronNativeTheme instance.