battery_info_get_battery_alert()

Determine whether the battery alert is triggered.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the battery alert status from.

Library:

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

Description:

The battery_info_get_battery_alert() function determines whether the battery alert has been triggered from a battery_info_t structure. The battery alert is triggered if the state of charge goes below a threshold.

Returns:

true if the battery alert is triggered, false otherwise.