battery_info_get_charger_info()

Retrieve the state of the charger.

Synopsis:

#include <bps/battery.h>
 
BPS_API int battery_info_get_charger_info(battery_info_t *info)

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to get the charger info from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The battery_info_get_charger_info() function retrieves information about the charger from a battery_info_t structure.

Returns:

The charger information as one of the values of the battery_charger_info_t enumeration or BPS_FAILURE on error.