Windows Native Toolkit

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

FieldDetails
PurposeReturns complete battery information in one Blueprint node.
GivesFWNTBatteryStatus return value
NeedsNo input.
C++ Example
  #include "BatteryUtility.h"

  auto Result = UBatteryUtility::GetBatteryStatus();

FWNTBatteryStatus Fields

FieldDescription
bHasBatteryTrue when Windows reports a real battery.
LevelBattery charge level from 0 to 100.
bIsChargingTrue when AC power is connected and the battery is actively charging.
bIsFullyChargedTrue when AC power is connected and the battery charge is 100 percent.
bSuccessTrue when Windows successfully returned a valid power status.

Last updated on

On this page