Retrieve the amount of time before the battery is fully discharged (empty).
#include <bps/battery.h>
BPS_API int battery_info_get_time_to_empty(battery_info_t *info)
BlackBerry 10.0.0
The battery_info_t structure to get the time to empty from.
The battery_info_get_time_to_empty() function gets the retrieves the time the battery has left before becoming fully discharged from a battery_info_t structure.
The time to empty (in minutes), or BATTERY_TIME_NA if the battery is not being discharged, or BPS_FAILURE on error.