accelerometer_set_update_frequency()

Sets the update rate of the accelerometer.

Synopsis:

#include <bps/accelerometer.h>
 
BPS_API int accelerometer_set_update_frequency(accelerometer_frequency_t freq) BPS_DEPRECATED

Since:

BlackBerry 10.0.0

Arguments:

freq

The update rate to set.

Library:

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

Description:

Deprecated:

Use the Sensor API (bps/sensor.h).

Returns:

BPS_SUCCESS or BPS_FAILURE