battery_info_get_battery_time_to_empty_at_constant_power()

Retrieve the battery time to empty at constant power.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the battery time to empty at constant power from.

Library:

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

Description:

The battery_info_get_battery_time_to_empty_at_constant_power() function retrieves the predicted time to empty if the battery is discharged at the average power value from a battery_info_t structure. The battery time to empty at constant power is reported in minutes.

Returns:

The battery time to empty at constant power or BATTERY_INVALID_VALUE if the battery time to empty at constant power is not available.