onRouteSegmentReached
abstract fun onRouteSegmentReached(currentSegment: RoutePathSegment, visitedSegments: List<RoutePathSegment>, upcomingSegments: List<RoutePathSegment>)
Implement this method to be notified when the user has moved to the next segment of the route.
Parameters
currentSegment
The now current segment the user is on.
visitedSegments
The previous segments the user has visited.
upcomingSegments
The remaining segments on the route beyond the current segment.