interface TrafficSettings : TrafficExtensions, TomtomMapCallback.OnMapTapListener, Persistable, TomtomMapCallback.OnMapChangedListener
Settings for manipulating traffic settings related to traffic (e.g. flows). To obtain this interface, call TomtomMap#getTrafficSettings()
abstract fun dismissTrafficBalloon(): Unit
Dismiss map balloon with traffic information. |
|
abstract fun setMarginAroundTouchedPointPx(marginAroundTouchedPointPx: Int): Unit
When user touch a map, information about traffic are collected from point and from all points around in the radius of the distance. |
|
abstract fun setOnTrafficFlowClickListener(listener: OnTrafficFlowClickListener!): Unit
Set callback interface that is executed when the user click on the map traffic flow. |
|
abstract fun setOnTrafficIncidentsClickListener(listener: OnTrafficIncidentsClickListener!): Unit
Set callback interface that is executed when the user click on the map traffic incidents. |
|
abstract fun setTrafficFlowBalloonViewAdapter(trafficFlowBalloonAdapter: MapBalloonViewAdapter<TrafficFlowMapBalloon!>!): Unit
View adapter of traffic flow balloon view. Implement abstract class |
|
abstract fun setTrafficIncidentsBalloonViewAdapter(trafficIncidentsBalloonViewAdapter: MapBalloonViewAdapter<TrafficIncidentsMapBalloon!>!): Unit
View adapter of traffic incidents balloon view. Implement abstract class |
|
abstract fun showTrafficFlowBalloon(mapPoint: MapPoint!, model: TrafficFlowMapBalloon!): Unit
Show map balloon with traffic flow information. |
|
abstract fun showTrafficIncidentBalloon(mapPoint: MapPoint!, model: TrafficIncidentsMapBalloon!): Unit
Show map balloon with traffic incident information. |
abstract fun
Get information about current traffic vector flow style settings. |
|
abstract fun
Get information about current traffic vector flow style settings. |
|
abstract fun isTrafficFlowEnabled(): Boolean
Get information about current traffic flow settings. |
|
abstract fun isTrafficIncidentsEnabled(): Boolean
Get information about current traffic incidents settings. |
|
abstract fun
Get information about current traffic raster flow settings. |
|
abstract fun
Get information about current traffic vector flow settings. |
|
abstract fun
Called when the new camera parameters are loaded. |
|
abstract fun
Called when the map camera is changing. |
|
abstract fun
Called when the map is about to change the camera parameters. |
|
abstract fun onDidFailLoadingMap(): Unit
Called when the map style has failed to load. |
|
abstract fun onDidFinishInitializingMap(): Unit
Called when the map has been loaded and is ready to use. |
|
abstract fun onDidFinishLoadingMap(): Unit
Called when the map has been loaded, including tiles. However, in Offline mode when tiles are not loaded, the load event is not triggered. |
|
abstract fun onDidFinishLoadingStyle(): Unit
Called when the map style has been loaded. This event triggers an OnMapReady callback. |
|
abstract fun onDidFinishRenderingFrame(): Unit
Called when the map frame has been rendered. |
|
abstract fun onDidFinishRenderingMap(): Unit
Called when the map has been rendered. |
|
abstract fun onMapLongTap(x: Float!, y: Float!): Unit
|
|
abstract fun onMapTap(x: Float!, y: Float!): Unit
|
|
abstract fun onSourceChanged(): Unit
Called when the source for the map style has been changed. |
|
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 onWillStartLoadingMap(): Unit
Called when the map is about to load a new style. |
|
abstract fun onWillStartRenderingFrame(): Unit
Called when the map is about to render a new frame. |
|
abstract fun onWillStartRenderingMap(): Unit
Called when the map is about to render. |
|
abstract fun turnOffTraffic(): Unit
Turn off information about traffic. |
|
abstract fun turnOffTrafficFlowTiles(): Unit
Turn off traffic flow tiles. |
|
abstract fun turnOffTrafficIncidents(): Unit
Turn off all traffic incidents. |
|
abstract fun turnOnRasterTrafficFlowTiles(): Unit
Set traffic tiles to raster. Default traffic style is abstract fun turnOnRasterTrafficFlowTiles(trafficFlowTilesStyle: TrafficFlowType.RasterTrafficFlowType!): Unit
Set traffic tiles flow to raster. The default and recommended method is |
|
abstract fun turnOnRasterTrafficIncidents(): Unit
Turn on raster incidents. |
|
abstract fun turnOnTrafficFlowTiles(): Unit
Turn on traffic flow tiles. |
|
abstract fun turnOnTrafficIncidents(): Unit
Turn on all traffic incidents. |
|
abstract fun turnOnVectorTrafficFlowTiles(): Unit
Set traffic tiles to vector. Default traffic style is abstract fun turnOnVectorTrafficFlowTiles(trafficFlowTilesStyle: TrafficFlowType.VectorTrafficFlowType!): Unit
Set traffic tiles to vector. This is the default and recommended value. Specify the style by: |
|
abstract fun turnOnVectorTrafficIncidents(): Unit
Turn on vector incidents. |