Get the current orientation direction and angle.
#include <bps/orientation.h>
BPS_API int orientation_get(orientation_direction_t *direction,
int *angle)
BlackBerry 10.0.0
The orientation direction.
The orientation angle (in degrees).
The orientation_get() function gets the current orientation direction and angle of the device.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.