public static enum Accelerometer.Orientation extends java.lang.Enum<Accelerometer.Orientation>
Enum Constant and Description |
---|
BACK_LANDSCAPE_LEFT |
BACK_LANDSCAPE_RIGHT |
BACK_PORTRAIT_DOWN |
BACK_PORTRAIT_UP |
FRONT_LANDSCAPE_LEFT |
FRONT_LANDSCAPE_RIGHT |
FRONT_PORTRAIT_DOWN |
FRONT_PORTRAIT_UP |
Modifier and Type | Method and Description |
---|---|
boolean |
isFront() |
boolean |
isPortrait() |
static Accelerometer.Orientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Accelerometer.Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accelerometer.Orientation FRONT_PORTRAIT_UP
public static final Accelerometer.Orientation FRONT_PORTRAIT_DOWN
public static final Accelerometer.Orientation FRONT_LANDSCAPE_RIGHT
public static final Accelerometer.Orientation FRONT_LANDSCAPE_LEFT
public static final Accelerometer.Orientation BACK_PORTRAIT_UP
public static final Accelerometer.Orientation BACK_PORTRAIT_DOWN
public static final Accelerometer.Orientation BACK_LANDSCAPE_RIGHT
public static final Accelerometer.Orientation BACK_LANDSCAPE_LEFT
public static Accelerometer.Orientation[] values()
for (Accelerometer.Orientation c : Accelerometer.Orientation.values()) System.out.println(c);
public static Accelerometer.Orientation 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 nullpublic boolean isFront()
public boolean isPortrait()