sensor_pause()

Suspend the delivery of events from the sensor to the thread.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_pause(sensor_t *sensor)

Since:

BlackBerry 10.0.0

Arguments:

sensor

The sensor to modify.

Library:

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

Description:

This function effectively disables the sensor. The sensor can be re-enabled and the delivery of events can be resumed by calling sensor_resume().

Returns:

EOK on success, an errno value otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus