ElectronPowerMonitor.on('unlock-screen') method
ElectronPowerMonitor › on(‘unlock-screen’)
Unofficial
Emitted as soon as the system's screen is unlocked.Signature:
on(event: "unlock-screen", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "unlock-screen" | The event name. |
| listener | () => void | Callback invoked when the event is emitted. |
Returns: this — This PowerMonitor instance. Platform: darwin,win32.