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