sensor_set_skip_duplicates()

Specify whether duplicate sensor events should be skipped.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_set_skip_duplicates(sensor_type_t type,
                                       bool enable_skipdup)

Since:

BlackBerry 10.0.0

Arguments:

type

The sensor that should skip duplicate events.

enable_skipdup

If true the device should attempt to skip duplicate events from the specified sensor, if false the device should not skip duplicate events.

Library:

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

Description:

The sensor_set_skip_duplicates() function enables or disables the skipping of duplicate events that are received from the specified sensor.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



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

comments powered by Disqus