PowerMonitor
external interface PowerMonitor : <ERROR CLASS> ERROR CLASS: Symbol not found for node.events.EventEmitter(source)
Properties
Link copied to clipboard
abstract val lockScreenEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val onBatteryEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
A boolean
property. True if the system is on battery power.
Link copied to clipboard
abstract val resumeEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val shutdownEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val speedLimitChangeEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val suspendEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val thermalStateChangeEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val unlockScreenEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val userDidBecomeActiveEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
abstract val userDidResignActiveEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Functions
Link copied to clipboard
The system's current thermal state. Can be unknown
, nominal
, fair
, serious
, or critical
.
Link copied to clipboard
The system's current idle state. Can be active
, idle
, locked
or unknown
.
Link copied to clipboard
Idle time in seconds
Link copied to clipboard
Whether the system is on battery power.