orientation_get()

Get the current orientation direction and angle.

Synopsis:

#include <bps/orientation.h>
 
BPS_API int orientation_get(orientation_direction_t *direction,
                            int *angle)

Since:

BlackBerry 10.0.0

Arguments:

direction

The orientation direction.

angle

The orientation angle (in degrees).

Library:

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

Description:

The orientation_get() function gets the current orientation direction and angle of the device.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.