Battery Library
Battery status node for laptops, handheld PCs, and battery-aware settings.
Use this library for laptops, handheld PCs, and battery-aware game settings.
Get Battery Status
| Field | Details |
|---|---|
| Purpose | Returns complete battery information in one Blueprint node. |
| Gives | FWNTBatteryStatus return value |
| Needs | No input. |
#include "BatteryUtility.h"
auto Result = UBatteryUtility::GetBatteryStatus();FWNTBatteryStatus Fields
| Field | Description |
|---|---|
bHasBattery | True when Windows reports a real battery. |
Level | Battery charge level from 0 to 100. |
bIsCharging | True when AC power is connected and the battery is actively charging. |
bIsFullyCharged | True when AC power is connected and the battery charge is 100 percent. |
bSuccess | True when Windows successfully returned a valid power status. |
Last updated on