Package com.iizix.gyro
Enum Class ScreenOrientation
- All Implemented Interfaces:
- Serializable,- Comparable<ScreenOrientation>,- Constable
Enumeration for values used for screen orientation.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe orientation is either landscape-primary or landscape-secondary (sensor).The orientation is in the primary landscape mode.The orientation is in the secondary landscape mode.The orientation is either portrait-primary or portrait-secondary (sensor).The orientation is in the primary portrait mode.The orientation is in the secondary portrait mode.Unknown orientation.
- Field SummaryFieldsModifier and TypeFieldDescription- final StringThe string in window.screen.orientation on the client side.- final booleanFlag for landscape orientation (false for "unknown").- final booleanFlag for portrait orientation (false for "unknown").
- Method SummaryModifier and TypeMethodDescription- static ScreenOrientationReturns the enum constant of this class with the specified name.- static ScreenOrientation[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- portraitThe orientation is either portrait-primary or portrait-secondary (sensor).
- landscapeThe orientation is either landscape-primary or landscape-secondary (sensor).
- portrait_primaryThe orientation is in the primary portrait mode.
- portrait_secondaryThe orientation is in the secondary portrait mode.
- landscape_primaryThe orientation is in the primary landscape mode.
- landscape_secondaryThe orientation is in the secondary landscape mode.
- unknownUnknown orientation.
 
- Field Details- clientOrientationThe string in window.screen.orientation on the client side.
- isPortraitpublic final boolean isPortraitFlag for portrait orientation (false for "unknown").
- isLandscapepublic final boolean isLandscapeFlag for landscape orientation (false for "unknown").
 
- Method Details- valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null