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:

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

Returns: this — This PowerMonitor instance.