setAutoRotate Method

This function will control whether the device should automatically handle rotation or not based on a boolean value.

intel.xdk.device.setAutoRotate(shouldAutoRotate);

Available Platforms:

Parameters:

shouldAutoRotate: This boolean value controls whether the device is allowed to automatically handle rotation or not.

Example:


intel.xdk.device.setAutoRotate(false);

For more complete information about compiler optimizations, see our Optimization Notice.