registerRoadObjectsOnRouteObserver

fun registerRoadObjectsOnRouteObserver(roadObjectsOnRouteObserver: RoadObjectsOnRouteObserver)

Registers an observer that gets notified whenever the route changes and provides the list of road objects on this new route, if there are any. The objects returned here are equal to the ones available in RouteProgress.upcomingRoadObjects, but they capture the whole route (not only what's ahead of us).

See also