rotation

Converts the orientation to an integer based on android.view.Surface