Skip to content

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): this

Parameters:

ParameterTypeDescription
$event"unlock-screen"
listener() => voidCallback invoked when the event is emitted.

Returns: this — This PowerMonitor instance. Platform: darwin,win32.