Android Utililty Methods Screen Orientation Check

List of utility methods to do Screen Orientation Check

Description

The list of methods to do Screen Orientation Check are organized into topic(s).

Method

floatgetDirectionNow(final float direction)
Take the phone rotation (through a given activity) in account and adjust the direction.
intgetRotationOffset()
get Rotation Offset
booleanisDefaultToPortrait(Activity activity)
Calculate the default orientation of the device based on the width and height of the display when rotation = 0 (i.e.
booleanisLandScape(Context context)
is Land Scape
booleanisLandscape(final Context context)
Used to determine if the device is currently in landscape mode
floatreverseDirectionNow(final float direction)
Reverse the phone rotation (through a given activity) in account and adjust the direction.
introundOrientation(int orientation, int orientationHistory)
round Orientation