| Enum Constant and Description | 
|---|
ACCELEROMETER  | 
BAROMETER  | 
COMPASS  | 
GPS  | 
GYROSCOPE  | 
LIGHT_SENSOR  | 
PROXIMITY_SENSOR  | 
| Modifier and Type | Method and Description | 
|---|---|
static Sensor | 
getEnum(java.lang.String value)  | 
java.lang.String | 
toString()  | 
static Sensor | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static Sensor[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Sensor ACCELEROMETER
public static final Sensor BAROMETER
public static final Sensor COMPASS
public static final Sensor GPS
public static final Sensor GYROSCOPE
public static final Sensor LIGHT_SENSOR
public static final Sensor PROXIMITY_SENSOR
public static Sensor[] values()
for (Sensor c : Sensor.values()) System.out.println(c);
public static Sensor 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@Nullable public static Sensor getEnum(@NonNull java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Sensor>