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:

Parameter Type Description
event "unlock-screen" The event name.
listener () => void Callback invoked when the event is emitted.

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