public static enum TiltSensor.TiltSensorMode extends java.lang.Enum<TiltSensor.TiltSensorMode>
Enum Constant and Description |
---|
TILT_SENSOR_MODE_ANGLE
Angle
|
TILT_SENSOR_MODE_CRASH
Crash
|
TILT_SENSOR_MODE_TILT
Tilt
|
TILT_SENSOR_MODE_UNKNOWN
Unknown
|
Modifier and Type | Method and Description |
---|---|
static TiltSensor.TiltSensorMode |
fromInteger(int value) |
int |
getValue() |
static TiltSensor.TiltSensorMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TiltSensor.TiltSensorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiltSensor.TiltSensorMode TILT_SENSOR_MODE_ANGLE
public static final TiltSensor.TiltSensorMode TILT_SENSOR_MODE_TILT
public static final TiltSensor.TiltSensorMode TILT_SENSOR_MODE_CRASH
public static final TiltSensor.TiltSensorMode TILT_SENSOR_MODE_UNKNOWN
public static TiltSensor.TiltSensorMode[] values()
for (TiltSensor.TiltSensorMode c : TiltSensor.TiltSensorMode.values()) System.out.println(c);
public static TiltSensor.TiltSensorMode 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 int getValue()
public static TiltSensor.TiltSensorMode fromInteger(int value)