Skip to content

ElectronPowerMonitor.on('suspend') method

ElectronPowerMonitor › on(‘suspend’)

Unofficial

Emitted when the system is suspending.

Signature:

on(event: "suspend", listener: () => void): this

Parameters:

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

Returns: thisThis PowerMonitor instance.