battery_info_get_system_charging_state()

Retrieve the system charging state.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the system charging state 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 the system charging state from a battery_info_t structure.

Returns:

The system charging state as one of the values of the battery_charging_state_t enumeration or BPS_FAILURE on error.