public static enum LocationRequest.MotionMode extends Enum<LocationRequest.MotionMode>
| Enum Constant and Description |
|---|
BY_CAR
The user is in a car
|
BY_FOOT
The user is walking
|
| Modifier and Type | Method and Description |
|---|---|
static LocationRequest.MotionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocationRequest.MotionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationRequest.MotionMode BY_FOOT
public static final LocationRequest.MotionMode BY_CAR
public static LocationRequest.MotionMode[] values()
for (LocationRequest.MotionMode c : LocationRequest.MotionMode.values()) System.out.println(c);
public static LocationRequest.MotionMode 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 null