getDeviceCurrentBasicOrientation

Calculates the current orientation of the device as either landscape or portrait.

Return

Either Configuration.ORIENTATION_LANDSCAPE or Configuration.ORIENTATION_PORTRAIT.

Parameters

activityContext

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