Set the orientation in the navigator based on landscape or portrait.
#include <bps/navigator.h>
BPS_API int navigator_set_orientation_mode(int mode,
char **id)
BlackBerry 10.0.0
NAVIGATOR_LANDSCAPE, NAVIGATOR_PORTRAIT.
If not null, the ID used in the orientation request will be returned in id. The caller must free this buffer using bps_free().
The navigator_set_orientation_mode() function sends a navigator orientation request to set the orientation in the navigator to the chosen mode (NAVIGATOR_LANDSCAPE, or NAVIGATOR_PORTRAIT).
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.