getRouteElements

open fun getRouteElements(@NonNull listener: RouteElementsListener, @Nullable executor: Executor)

Returns a list of RouteElement objects for current route object from start. The elements are generated asynchronously and returned via callback. The callback will be called on provided executor or on main thread if null. Note: This array doesn't change while navigating.


open fun getRouteElements(@NonNull listener: RouteElementsListener)