Determine whether the battery is present.
#include <bps/battery.h>
BPS_API bool battery_info_is_battery_present(battery_info_t *info)
BlackBerry 10.0.0
The battery_info_t structure to retrieve the battery presence from.
The battery_info_is_battery_present() function determines whether the battery is present in a device from a battery_info_t structure.
true if the battery is present, false if the battery is not present or if the battery was not ready.