Values returned by battery functions to indicate special conditions.
#include <bps/battery.h>
typedef enum {
BATTERY_TIME_NA = 65535
BATTERY_INVALID_VALUE = 80000000
} battery_special_values_t;
BlackBerry 10.2.0
For example, when the device is plugged in, the battery does not discharge, therefore a call to the battery_info_get_time_to_empty() function will return BATTERY_TIME_NA. Similarly, when the device is not plugged in, the battery does not charge, therefore, a call to the battery_info_get_time_to_full() function will return BATTERY_TIME_NA.