public interface RouteSettings extends com.tomtom.core.maps.OnMapTapListener, Persistable
TomtomMap.getRouteSettings()| Modifier and Type | Method and Description |
|---|---|
void |
addOnRouteClickListener(TomtomMapCallback.OnRouteClickListener listener)
Called to add a listener for route clicks.
|
Route |
addRoute(RouteBuilder routeBuilder)
Display route and prepare map to navigate on that route.
|
void |
bringRouteToFront(long routeId)
Bring the specific route to front.
|
void |
clearRoute()
Erase route from map.
|
void |
displayRouteOverview(long id)
Display route overview using its id.
|
void |
displayRoutesOverview()
Display route overview.
|
Optional<Route> |
findRouteByID(long id)
Find route using its id.
|
java.util.List<Route> |
getRoutes()
Get list of all routs added to the map.
|
void |
removeOnRouteClickListener(TomtomMapCallback.OnRouteClickListener listener)
Called to remove a listener for route clicks.
|
void |
removeOnRouteClickListeners()
Remove all registered route click listeners.
|
void |
setRouteActive(long routeId)
Deprecated.
|
void |
setRouteInactive(long routeId)
Deprecated.
|
void |
setRoutesActive()
Deprecated.
|
void |
setRoutesInactive()
Deprecated.
|
void |
updateRouteStyle(long routeId,
RouteStyle routeStyle)
Updates the style of the specific route in terms of route's properties like: width, fillColor and outlineColor.
|
onViewStateRestoredRoute addRoute(RouteBuilder routeBuilder)
java.util.List<Route> getRoutes()
void clearRoute()
void displayRoutesOverview()
void displayRouteOverview(long id)
void updateRouteStyle(long routeId,
RouteStyle routeStyle)
routeId - the id of the map's route.routeStyle - the new style for the map's route.void bringRouteToFront(long routeId)
routeId - the id of the map's route.@Deprecated
@DeprecatedSince(month=10,
year=2018)
void setRoutesInactive()
RouteExtension.updateRouteStyle(long, RouteStyle) to change route color
instead of using this method.@Deprecated
@DeprecatedSince(month=10,
year=2018)
void setRoutesActive()
RouteExtension.updateRouteStyle(long, RouteStyle) to change route color
instead of using this method.@Deprecated
@DeprecatedSince(month=10,
year=2018)
void setRouteActive(long routeId)
RouteExtension.updateRouteStyle(long, RouteStyle) to change route color
instead of using this method. No action if route does not exist.@Deprecated
@DeprecatedSince(month=10,
year=2018)
void setRouteInactive(long routeId)
RouteExtension.updateRouteStyle(long, RouteStyle) to change route color
instead of using this method. No action if route does not exist.void addOnRouteClickListener(TomtomMapCallback.OnRouteClickListener listener)
listener - Listener to be added for route clicks.void removeOnRouteClickListener(TomtomMapCallback.OnRouteClickListener listener)
listener - Listener to be removed for route clicks.void removeOnRouteClickListeners()