public enum MotionSensorEvent extends Enum<MotionSensorEvent>
| Enum Constant and Description |
|---|
MOTION_DETECTED |
MOTION_DETECTED_DELAYED |
NO_CONDITION_DETECTED |
TAMPER_DETECTED |
| Modifier and Type | Method and Description |
|---|---|
static MotionSensorEvent |
getMotionSensorEvent(int val)
convert int to enum item
|
static MotionSensorEvent |
toMotionSensorEvent(String str)
convert String to enum item
|
int |
value() |
static MotionSensorEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MotionSensorEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MotionSensorEvent MOTION_DETECTED
public static final MotionSensorEvent MOTION_DETECTED_DELAYED
public static final MotionSensorEvent TAMPER_DETECTED
public static final MotionSensorEvent NO_CONDITION_DETECTED
public static MotionSensorEvent[] values()
for (MotionSensorEvent c : MotionSensorEvent.values()) System.out.println(c);
public static MotionSensorEvent valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int value()
public static MotionSensorEvent toMotionSensorEvent(String str)
str - public static MotionSensorEvent getMotionSensorEvent(int val)
int - Copyright © 2018 universAAL Consortium. All rights reserved.