rotation property

int? rotation
getter/setter pair

Returns the rotation of the screen from its "natural" orientation. The returned value may be ROTATION_0 (no rotation), ROTATION_90, ROTATION_180, or ROTATION_270. For example, if a device has a naturally tall screen, and the user has turned it on its side to go into a landscape orientation, the value returned here may be either ROTATION_90 or ROTATION_270 depending on the direction it was turned. The angle is the rotation of the drawn graphics on the screen, which is the opposite direction of the physical rotation of the device. For example, if the device is rotated 90 degrees counter-clockwise, to compensate rendering will be rotated by 90 degrees clockwise and thus the returned value here will be ROTATION_90.

Implementation

int? rotation;