Retrieve the state of the charger.
#include <bps/battery.h>
BPS_API int battery_info_get_charger_info(battery_info_t *info)
BlackBerry 10.0.0
The battery_info_t structure to get the charger info from.
The battery_info_get_charger_info() function retrieves information about the charger from a battery_info_t structure.
The charger information as one of the values of the battery_charger_info_t enumeration or BPS_FAILURE on error.