sensor_orientation_t

Orientation of the device.

Synopsis:

#include <bps/sensor.h>
 
typedef enum {
      SENSOR_ORIENTATION_FACE_UP = 0   
      SENSOR_ORIENTATION_TOP_UP = 1   
      SENSOR_ORIENTATION_BOTTOM_UP = 2   
      SENSOR_ORIENTATION_LEFT_UP = 3   
      SENSOR_ORIENTATION_RIGHT_UP = 4   
      SENSOR_ORIENTATION_FACE_DOWN = 5   
} sensor_orientation_t;

Since:

BlackBerry 10.0.0

Data:

SENSOR_ORIENTATION_FACE_UP
The front of the device, usually the screen, is pointed up.
SENSOR_ORIENTATION_TOP_UP
The front of the device is pointed up.
SENSOR_ORIENTATION_BOTTOM_UP
The bottom of the device is pointed up.
SENSOR_ORIENTATION_LEFT_UP
The top of the device is pointed to the left.
SENSOR_ORIENTATION_RIGHT_UP
The top of the device is pointed to right.
SENSOR_ORIENTATION_FACE_DOWN
The front of the device, usually a screen, is pointed down.

Library:

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

Description:

This enumeration defines the possible direction that the device is facing.

Last modified: 2014-09-30



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

comments powered by Disqus