sensor_request_events()

Start sending sensor events to BlackBerry Platform Services (BPS)

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_request_events(sensor_type_t type)

Since:

BlackBerry 10.0.0

Arguments:

type

The types of events to deliver. You can use the values that are defined in the sensor_type_t enumeration to specify the sensor events to deliver.

Library:

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

Description:

The sensor_request_events() function starts to deliver sensor events to the application using BPS.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus