public abstract class Milestone extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Milestone.Builder
Build a new
Milestone |
Constructor and Description |
---|
Milestone(Milestone.Builder builder) |
Modifier and Type | Method and Description |
---|---|
int |
getIdentifier()
Milestone specific identifier as an
int value, useful for deciphering which milestone
invoked MilestoneEventListener.onMilestoneEvent(RouteProgress, String, Milestone) . |
Instruction |
getInstruction()
Milestone specific
Instruction , which can be used to build a String
instruction specified by the superclass. |
abstract boolean |
isOccurring(RouteProgress previousRouteProgress,
RouteProgress routeProgress)
A milestone can either be passed in to the
MapboxNavigation object
(recommended) or validated directly inside your activity. |
public Milestone(Milestone.Builder builder)
public int getIdentifier()
int
value, useful for deciphering which milestone
invoked MilestoneEventListener.onMilestoneEvent(RouteProgress, String, Milestone)
.int
representing the identifierpublic Instruction getInstruction()
Instruction
, which can be used to build a String
instruction specified by the superclass.Instruction
to be used to build the String
passed to
MilestoneEventListener.onMilestoneEvent(RouteProgress, String, Milestone)
public abstract boolean isOccurring(RouteProgress previousRouteProgress, RouteProgress routeProgress)
MapboxNavigation
object
(recommended) or validated directly inside your activity.previousRouteProgress
- last locations generated RouteProgress
object used to
determine certain TriggerProperty
srouteProgress
- used to determine certain TriggerProperty
s© 2019 Mapbox. All rights reserved.