Retrieve the battery information structure from a BATTERY_INFO event.
#include <bps/battery.h>
BPS_API battery_info_t* battery_event_get_info(bps_event_t *event)
BlackBerry 10.0.0
The BATTERY_INFO event to get the battery information structure from.
You call the battery_event_get_info() function to retrieve the battery information structure from a BATTERY_INFO event. Details about the battery can be determined using the battery_info_get_*() functions. Do not use the battery_free_info() function on this battery_info_t pointer. The memory associated with the battery information structure is valid as long as the event is valid and is freed internally by BlackBerry Platform Services (BPS).
The battery information structure.