Retrieve the state of health from a battery information structure.
#include <bps/battery.h>
BPS_API int battery_info_get_state_of_health(battery_info_t *info)
BlackBerry 10.0.0
The battery_info_t structure to get the state of health from.
The battery_info_get_state_of_health() function retrieves the state of health from a battery_info_t structure. The state of health is reported as a percentage from 0 to 100.
The state of health in percent or BPS_FAILURE if the battery was not ready.