Retrieve the battery average power.
#include <bps/battery.h>
BPS_API int battery_info_get_battery_average_power(battery_info_t *info)
BlackBerry 10.2.0
The battery_info_t structure to get the battery average power from.
The battery_info_get_battery_average_power() function retrieves the average power of the current discharge of the battery from a battery_info_t structure. It is negative when the battery is discharging and positive when the battery is charging. The battery average power is reported in milliwatts (mW).
The battery average power or BATTERY_INVALID_VALUE if the battery average power is not available.