Stop sending sensor events to BlackBerry Platform Services (BPS)
#include <bps/sensor.h>
BPS_API int sensor_stop_events(sensor_type_t type)
BlackBerry 10.0.0
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.
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.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.