battery_info_is_battery_present()

Determine whether the battery is present.

Synopsis:

#include <bps/battery.h>
 
BPS_API bool battery_info_is_battery_present(battery_info_t *info)

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to retrieve the battery presence from.

Library:

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

Description:

The battery_info_is_battery_present() function determines whether the battery is present in a device from a battery_info_t structure.

Returns:

true if the battery is present, false if the battery is not present or if the battery was not ready.