Retrieve the available energy remaining in the battery.
#include <bps/battery.h>
BPS_API int battery_info_get_battery_available_energy(battery_info_t *info)
BlackBerry 10.2.0
The battery_info_t structure to get the available energy remaining in the battery from.
The battery_info_get_battery_available_energy() function retrieves the predicted charge or available energy remaining in the battery from a battery_info_t structure. The available energy remaining in the battery is reported in milliwatt-hours (mWh).
The available energy remaining in the battery or BATTERY_INVALID_VALUE if the available energy remaining in the battery is not available.