getDegreeRotationFromNaturalOrientation

Calculates how far from the natural orientation the device currently is in degrees.

Return

The angle in degrees; either 0, 90, 180, or 270.

Parameters

activityContext

The context used for calculation. NOTE: As of Android 11 it MUST be an Activity's context.