Megosztás a következőn keresztül:


Windows.System.Power Namespace

Provides power and energy usage APIs.

Classes

BackgroundEnergyManager

Provides information about your app's background energy usage.

ForegroundEnergyManager

Provides information about your app's foreground energy usage.

PowerManager

Provides access to information about a device's battery and power supply status.

Enums

BatteryStatus

Indicates the status of the battery.

EnergySaverStatus

Specifies the status of battery saver.

PowerSupplyStatus

Represents the device's power supply status.