interface RouteSettings : RouteExtension, TomtomMapCallback.OnMapTapListener, RouteCallbackExtension, Persistable
Advanced settings for routes manipulation. To obtain this interface, call TomtomMap#getRouteSettings()
abstract fun addOnRouteClickListener(listener: TomtomMapCallback.OnRouteClickListener!): Unit
Called to add a listener for route clicks. |
|
abstract fun addRoute(routeBuilder: RouteBuilder!): Route!
Display route and prepare map to navigate on that route. |
|
abstract fun bringRouteToFront(routeId: Long): Unit
Bring the specific route to front. As a result, it will be drawn on top of other routes. |
|
abstract fun clearRoute(): Unit
Erase route from map. |
|
abstract fun displayRouteOverview(id: Long): Unit
Display route overview using its id. No action when route not found. |
|
abstract fun displayRoutesOverview(): Unit
Display route overview. All added routes will be visible. |
|
abstract fun findRouteByID(id: Long): Optional<Route!>!
Find route using its id. |
|
abstract fun getRoutes(): MutableList<Route!>!
Get list of all routs added to the map. |
|
abstract fun onMapLongTap(x: Float!, y: Float!): Unit
|
|
abstract fun onMapTap(x: Float!, y: Float!): Unit
|
|
abstract fun onViewStateRestored(savedState: MapState!): Unit
Called internally to restore state, e.g., when the app is resumed from the background. |
|
abstract fun onViewStateSave(outState: MapState!): Unit
Called internally to save state, e.g., when the app is going to the background. |
|
abstract fun removeOnRouteClickListener(listener: TomtomMapCallback.OnRouteClickListener!): Unit
Called to remove a listener for route clicks. |
|
abstract fun removeOnRouteClickListeners(): Unit
Remove all registered route click listeners. |
|
abstract fun updateRouteStyle(routeId: Long, routeStyle: RouteStyle!): Unit
Updates the style of the specific route in terms of route's properties like: width, fillColor and outlineColor. |