battery_info_get_battery_cycle_count()

Retrieve the battery cycle count.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the battery cycle count from.

Library:

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

Description:

The battery_info_get_battery_cycle_count() function retrieves the cycle count of the battery from a battery_info_t structure.

Returns:

The battery cycle count or BATTERY_INVALID_VALUE if the battery cycle count is not available.