Retrieve the battery voltage.
#include <bps/battery.h>
BPS_API int battery_info_get_battery_voltage(battery_info_t *info)
BlackBerry 10.2.0
The battery_info_t structure to get the battery voltage from.
The battery_info_get_battery_voltage() function retrieves the battery voltage from a battery_info_t structure. The battery voltage is reported in millivolts (mV).
The battery voltage or BATTERY_INVALID_VALUE if the battery voltage is not available.