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

Returns: thisThis PowerMonitor instance.