public class BannerInstructionMilestone extends Milestone
MapboxNavigation
when default milestones are enabled.
Please note, this milestone has a custom trigger based on location progress along a route. If you set custom triggers, they will be ignored in favor of this logic.
Modifier and Type | Class and Description |
---|---|
static class |
BannerInstructionMilestone.Builder |
Modifier and Type | Method and Description |
---|---|
com.mapbox.api.directions.v5.models.BannerInstructions |
getBannerInstructions()
Returns the given
BannerInstructions for the time that the milestone is triggered. |
boolean |
isOccurring(RouteProgress previousRouteProgress,
RouteProgress routeProgress)
A milestone can either be passed in to the
MapboxNavigation object
(recommended) or validated directly inside your activity. |
getIdentifier, getInstruction
public boolean isOccurring(RouteProgress previousRouteProgress, RouteProgress routeProgress)
Milestone
MapboxNavigation
object
(recommended) or validated directly inside your activity.isOccurring
in class Milestone
previousRouteProgress
- last locations generated RouteProgress
object used to
determine certain TriggerProperty
srouteProgress
- used to determine certain TriggerProperty
spublic com.mapbox.api.directions.v5.models.BannerInstructions getBannerInstructions()
BannerInstructions
for the time that the milestone is triggered.© 2019 Mapbox. All rights reserved.