ElectronNativeTheme.once method
ElectronNativeTheme › once
Unofficial
Registers a one-time listener for theupdated event. The listener is removed after it is invoked once. Signature:
once(event: "updated", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "updated" | The event name. |
| listener | () => void | The event handler. |
Returns: this — This ElectronNativeTheme instance.