sensor_get_domain()

Retrieve the unique domain ID for the sensor service.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_get_domain(void)

Since:

BlackBerry 10.0.0

Arguments:

Library:

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

Description:

The sensor_get_domain() function gets the unique domain ID for the sensor service. Use this function in your application to test whether an event that you retrieve using the bps_get_event() function is a sensor event, and respond accordingly.

Returns:

The domain ID for the sensor service.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus