sensor_stop_events()

Stop sending sensor events to BlackBerry Platform Services (BPS)

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_stop_events(sensor_type_t type)

Since:

BlackBerry 10.0.0

Arguments:

type

The types of events to stop. You can use the values that are defined in the sensor_type_t enumeration to specify the sensor events to stop.

Library:

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

Description:

The sensor_stop_events() function stops sensor events from being delivered to the application using BPS. You must make sure that you call this function with the same parameters that you specified in sensor_request_events(). For example, if you called the sensor_request_events(SENSOR_TYPE_MAGNETOMETER) function, you must make sure to call the sensor_stop_events(SENSOR_TYPE_MAGNETOMETER) function instead of specifying a different sensor type, such as SENSOR_TYPE_GYROSCOPE or SENSOR_TYPE_TEMPERATURE.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus