navigator_rotation_effect()

Set the rotation effect in the navigator.

Synopsis:

#include <bps/navigator.h>
 
BPS_API int navigator_rotation_effect(bool effect)

Since:

BlackBerry 10.0.0

Arguments:

effect

If true the rotation effect is enabled; if false the rotation effect is disabled.

Library:

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

Description:

The navigator_rotation_effect() function enables or disables the system's standard rotation effect when the application is rotated. When set to false, the device rotation will occur instantly and the application will need to provide its own rotation animation if desired. The application starts with the rotation effect enabled.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.