Specify whether the sensor should continue operation when the system goes into standby.
#include <bps/sensor.h>
BPS_API int sensor_set_background(sensor_type_t type,
bool enable_background)
BlackBerry 10.0.0
The sensor that should continue operation even in standby mode.
If true the sensor continues operation while in standby. If false, the sensor stops operation while the system is in standby.
The sensor_set_background() function when enabled allows the sensor to continue operation even when the system goes into standby mode.
If a sensor is set to stay active when the system is in standby mode, battery life is reduced.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.