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"The event name.
listener() => voidCallback invoked when the event is emitted.

Returns: thisThis PowerMonitor instance. Platform: darwin,win32.