orientation_event_get_direction()

Get the curent direction that the device is being held in.

Synopsis:

#include <bps/orientation.h>
 
BPS_API orientation_direction_t orientation_event_get_direction(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The event to get the direction from.

Library:

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

Description:

The orientation_event_get_direction() function gets the current direction that the device is being held in from an ORIENTATION_INFO event.

Returns:

The current direction.