public static enum LocationRequest.MotionMode extends java.lang.Enum<LocationRequest.MotionMode>
Enum Constant and Description |
---|
BY_CAR
The user is in a car
|
BY_FOOT
The user is walking
|
BY_FOOT_VISUAL_ODOMETRY
(EXPERIMENTAL) To use is walking + visual odometry.
|
RADIOMAX
It will use the maximum of the WiFi/BLE.
|
VEHICLE_VISUAL_ODOMETRY
(EXPERIMENTAL) To be used when the smartphone is in a vehicle + visual odometry.
|
Modifier and Type | Method and Description |
---|---|
static LocationRequest.MotionMode |
valueOf(java.lang.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 final LocationRequest.MotionMode RADIOMAX
In this mode the value of LocationRequest.useDeadReckoning()
is ignored
public static final LocationRequest.MotionMode BY_FOOT_VISUAL_ODOMETRY
It requires Android 7 and a compatible device (See supported devices).
It requires the permission android.permission.CAMERA
.
In this mode the value of LocationRequest.useDeadReckoning()
is ignored
public static final LocationRequest.MotionMode VEHICLE_VISUAL_ODOMETRY
It requires Android 7 and a compatible device (See supported devices).
It requires the permission android.permission.CAMERA
.
In this mode the value of LocationRequest.useDeadReckoning()
is ignored
public static LocationRequest.MotionMode[] values()
for (LocationRequest.MotionMode c : LocationRequest.MotionMode.values()) System.out.println(c);
public static LocationRequest.MotionMode 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