battery_info_get_time_to_full()

Retrieve the amount of time to fully charge the battery.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to get the time to fully charge from.

Library:

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

Description:

The battery_info_get_time_to_full() function gets the time to fully charge the battery from a battery_info_t structure.

Returns:

The time to fully charge (in minutes), BATTERY_TIME_NA if the battery is not being charged, or BPS_FAILURE on error.