StepMilestone

open class StepMilestone(val identifier: Int, instruction: Instruction? = null, val trigger: Trigger.Statement? = null) : Milestone

Using a Step Milestone will result in MilestoneEventListener.onMilestoneEvent being invoked every step if the condition validation returns true.

Since

0.4.0

Constructors

Link copied to clipboard
constructor(identifier: Int, instruction: Instruction? = null, trigger: Trigger.Statement? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun isOccurring(previousRouteProgress: RouteProgress?, routeProgress: RouteProgress): Boolean

A milestone can either be passed in to the MapLibreNavigation object (recommended) or validated directly inside your activity.