navigator_set_window_angle()

Set the window angle in the navigator.

Synopsis:

#include <bps/navigator.h>
 
BPS_API int navigator_set_window_angle(int angle)

Since:

BlackBerry 10.0.0

Arguments:

angle

The angle of the window to set.

Library:

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

Description:

The navigator_set_window_angle() function sends a navigator windowAngle request to set the angle of the application window in the navigator. When using this function, it is expected that the application does its rotation internally. In this case, the application should maintain a SCREEN_PROPERTY_ROTATION value of 0, do its rotations internally, and report back the angle of rotation to the navigator so that it remains in sync.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.