From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As DeviceData.BatteryStates )
DeviceData.BatteryStatesValue = aDeviceData.BatteryState

New in 2020r2

Supported for all project types and targets.

Indicates if the battery is charging, fully charged, etc.


To get the current state of the battery, BatteryMonitoringEnabled must be True. One you no longer need to know the current battery state, set BatteryMonitoringEnabled to False.

See Also

BatteryStates enumeration.