sensor_event_get_orientation_face()

Returns the direction the device is facing.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_event_get_orientation_face(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The SENSOR_ORIENTATION_READING event.

Library:

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

Description:

Retrieves the sensor_orientation_t that the device is currently facing from a SENSOR_ORIENTATION_READING event.

Returns:

The direction the device is facing, -1 with the errno value set otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus