sdk-maps / com.tomtom.online.sdk.map / DefaultOnTrafficFlowClickListener / onTrafficFlowClick

onTrafficFlowClick

open fun onTrafficFlowClick(pointOnScreen: MapPoint!, flows: MutableList<TrafficFlow!>!): Boolean

Overrides OnTrafficFlowClickListener.onTrafficFlowClick

Callback executed when vector traffic flow is pressed. When the list of events are empty, the traffic flow balloon is dismissed. When the list is not empty, the traffic flow balloon is shown.

Parameters

mapPoint - A point on the screen resolved as a location.

trafficFlows - A list of traffic points displayed under the clicked place on the map.

pointOnScreen - MapPoint!: which was clicked.

flows - MutableList<TrafficFlow!>!: available data about traffic flows.