public static enum MotionSensor.MotionSensorMode extends java.lang.Enum<MotionSensor.MotionSensorMode>
Enum Constant and Description |
---|
MOTION_SENSOR_MODE_COUNT
Count mode - produces values that reflect how many times the sensor has been activated
|
MOTION_SENSOR_MODE_DETECT
Detect mode - produces value that reflect the relative distance from the sensor to objects in front of it
|
MOTION_SENSOR_MODE_UNKNOWN
Unknown (unsupported) mode
|
Modifier and Type | Method and Description |
---|---|
static MotionSensor.MotionSensorMode |
fromInteger(int mode) |
int |
getValue() |
static MotionSensor.MotionSensorMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MotionSensor.MotionSensorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MotionSensor.MotionSensorMode MOTION_SENSOR_MODE_DETECT
public static final MotionSensor.MotionSensorMode MOTION_SENSOR_MODE_COUNT
public static final MotionSensor.MotionSensorMode MOTION_SENSOR_MODE_UNKNOWN
public static MotionSensor.MotionSensorMode[] values()
for (MotionSensor.MotionSensorMode c : MotionSensor.MotionSensorMode.values()) System.out.println(c);
public static MotionSensor.MotionSensorMode 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 MotionSensor.MotionSensorMode fromInteger(int mode)