Retrieve the unique domain ID for the battery service.
#include <bps/battery.h>
BPS_API int battery_get_domain()
BlackBerry 10.0.0
The battery_get_domain() function gets the unique domain ID for the battery service. You can use this function in your application to test whether an event that you retrieve using bps_get_event() is a battery event, and respond accordingly.
The domain ID for the battery service.