public static enum Accelerometer.BoardOrientation extends java.lang.Enum<Accelerometer.BoardOrientation>
Enum Constant and Description |
---|
FACE_DOWN_LANDSCAPE_LEFT |
FACE_DOWN_LANDSCAPE_RIGHT |
FACE_DOWN_PORTRAIT_UPRIGHT |
FACE_DOWN_PORTRAIT_UPSIDE_DOWN |
FACE_UP_LANDSCAPE_LEFT |
FACE_UP_LANDSCAPE_RIGHT |
FACE_UP_PORTRAIT_UPRIGHT |
FACE_UP_PORTRAIT_UPSIDE_DOWN |
Modifier and Type | Method and Description |
---|---|
static Accelerometer.BoardOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Accelerometer.BoardOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accelerometer.BoardOrientation FACE_UP_PORTRAIT_UPRIGHT
public static final Accelerometer.BoardOrientation FACE_UP_PORTRAIT_UPSIDE_DOWN
public static final Accelerometer.BoardOrientation FACE_UP_LANDSCAPE_LEFT
public static final Accelerometer.BoardOrientation FACE_UP_LANDSCAPE_RIGHT
public static final Accelerometer.BoardOrientation FACE_DOWN_PORTRAIT_UPRIGHT
public static final Accelerometer.BoardOrientation FACE_DOWN_PORTRAIT_UPSIDE_DOWN
public static final Accelerometer.BoardOrientation FACE_DOWN_LANDSCAPE_LEFT
public static final Accelerometer.BoardOrientation FACE_DOWN_LANDSCAPE_RIGHT
public static Accelerometer.BoardOrientation[] values()
for (Accelerometer.BoardOrientation c : Accelerometer.BoardOrientation.values()) System.out.println(c);
public static Accelerometer.BoardOrientation 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