OnTrafficIncidentObservation
public protocol OnTrafficIncidentObservation : Observer
Protocol that defines method that will be performed when user clicked on traffic incidents icon.
Important
This is a Public Preview API. It may be changed or removed at any time.-
The method for getting information about taps on a traffic incident. The observer method is triggered with the list of
TrafficIncidentobjects and theCLLocationCoordinate2Dof the clicked location. EachTrafficIncidentprovides information about the incident such as a description, delay in seconds, and when the incident is estimated to end.Declaration
Swift
func onTrafficIncidentClicked(trafficIncidents: [TrafficIncident], coordinate: CLLocationCoordinate2D)
OnTrafficIncidentObservation Protocol Reference