Skip to content

Interface: PowerStatus ​

Defined in: types/desktop-engine.d.ts:4173

Power, in SystemStatus.power

Properties ​

adapterWatts ​

ts
readonly adapterWatts: number | null;

Defined in: types/desktop-engine.d.ts:4179

What the power adapter can give, in watts; null on battery and when the Mac doesn't know


battery ​

ts
readonly battery: BatteryStatus | null;

Defined in: types/desktop-engine.d.ts:4177

The built-in battery; null on Macs without one


lowPowerMode ​

ts
readonly lowPowerMode: boolean;

Defined in: types/desktop-engine.d.ts:4186

Whether Low Power Mode is on


source ​

ts
readonly source: "battery" | "ac";

Defined in: types/desktop-engine.d.ts:4175

What the Mac runs on now


systemWatts ​

ts
readonly systemWatts: number | null;

Defined in: types/desktop-engine.d.ts:4184

What the whole Mac draws now, in watts; null when the Mac doesn't tell (some Macs never do). How often it changes depends on the Mac: from every reading to about once a minute

The SDK is released under the Apache License 2.0