Device Rotation Status Check

The following native code snippet will check whether auto rotation status is on or off. It will return 1 if rotation is on and return 0 if rotation off.