Enable or disable background mode.
#include <sensor/libsensor.h>
int sensor_set_background(sensor_t *sensor, bool enable)
BlackBerry 10.0.0
The sensor to modify.
1 to enable background mode, or 0 to disable it.
When background mode is enabled, the sensor isn't automatically disabled when the device is in standby. This is useful for clients that wish to continue to receive sensor events when the screen is off. Power consumption must be considered when using this feature.
EOK on success, an errno value otherwise.