public enum RouteProgressState extends Enum<RouteProgressState>
Enum Constant and Description |
---|
LOCATION_STALE
A lack of
Location updates from the phone has caused lack of confidence in the
progress updates being sent. |
LOCATION_TRACKING
MapboxNavigation is now confidently tracking the
location updates and processing them against the route. |
ROUTE_ARRIVED
The user has arrived at the destination of the given
RouteLeg . |
ROUTE_INITIALIZED
The
DirectionsRoute is valid
and MapboxNavigation is waiting for
sufficient Location updates
from the LocationEngine . |
ROUTE_INVALID
The
DirectionsRoute provided
via MapboxNavigation.startNavigation(DirectionsRoute)
is not valid. |
Modifier and Type | Method and Description |
---|---|
static RouteProgressState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouteProgressState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouteProgressState ROUTE_INVALID
DirectionsRoute
provided
via MapboxNavigation.startNavigation(DirectionsRoute)
is not valid.public static final RouteProgressState ROUTE_INITIALIZED
DirectionsRoute
is valid
and MapboxNavigation
is waiting for
sufficient Location
updates
from the LocationEngine
.public static final RouteProgressState ROUTE_ARRIVED
RouteLeg
.public static final RouteProgressState LOCATION_TRACKING
MapboxNavigation
is now confidently tracking the
location updates and processing them against the route.public static final RouteProgressState LOCATION_STALE
Location
updates from the phone has caused lack of confidence in the
progress updates being sent.public static RouteProgressState[] values()
for (RouteProgressState c : RouteProgressState.values()) System.out.println(c);
public static RouteProgressState 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© 2019 Mapbox. All rights reserved.