battery_info_is_battery_ready()

Determine whether the battery is ready.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to get the battery ready status from.

Library:

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

Description:

The battery_info_is_battery_ready() function determines whether the battery is ready from a battery_info_t structure. If the battery is not ready, then all the other battery-related information in the structure is invalid.

Returns:

true if the battery is ready, false otherwise.