Specify the orientation of your application as locked or not locked.
#include <bps/navigator.h>
BPS_API int navigator_rotation_lock(bool locked)
BlackBerry 10.0.0
If true the orientation of your application is locked, if false the orientation of your application is not locked.
The navigator_rotation_lock() function specifies to the navigator whether your application's orientation is locked or not locked.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.