navigator_event_get_orientation_mode()

Get the orientation mode from a navigator event.

Synopsis:

#include <bps/navigator.h>
 
BPS_API int navigator_event_get_orientation_mode(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The NAVIGATOR_ORIENTATION, or NAVIGATOR_ORIENTATION_CHECK event.

Library:

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

Description:

The navigator_event_get_orientation_mode() functions extracts the orientation mode from a NAVIGATOR_ORIENTATION, or NAVIGATOR_ORIENTATION_CHECK event. The result is one of NAVIGATOR_LANDSCAPE or NAVIGATOR_PORTRAIT.

Returns:

NAVIGATOR_LANDSCAPE, or NAVIGATOR_PORTRAIT