public enum ScreenOrientation extends java.lang.Enum<ScreenOrientation>
| Enum Constant and Description |
|---|
LANDSCAPE_FIXED
The app will be fixed in its default Landscape mode.
|
LANDSCAPE_SENSOR
The app will automatically rotate between the Landscape modes, depending on the orientation of the device.
|
PORTRAIT_FIXED
The app will be fixed in its default Portrait mode.
|
PORTRAIT_SENSOR
The app will automatically rotate between the Portrait modes, depending on the orientation of the device.
|
| Modifier and Type | Method and Description |
|---|---|
static ScreenOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenOrientation LANDSCAPE_FIXED
public static final ScreenOrientation LANDSCAPE_SENSOR
public static final ScreenOrientation PORTRAIT_FIXED
public static final ScreenOrientation PORTRAIT_SENSOR
public static ScreenOrientation[] values()
for (ScreenOrientation c : ScreenOrientation.values()) System.out.println(c);
public static ScreenOrientation valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null