Package com.navmii.sdk.traffic
Interface TrafficManager
- All Known Implementing Classes:
TrafficManager.CppProxy
public interface TrafficManager
Interface providing access to the latest traffic around the GPS coordinates.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TrafficManager.CppProxy
-
Method Summary
Modifier and Type Method Description void
addTrafficNearPositionListener(TrafficNearPositionListener listener)
Adds listener to be notified about traffic updates.void
removeTrafficNearPositionListener(TrafficNearPositionListener listener)
Removes listener to be notified about traffic updates.TrafficSnapshot
trafficNearCurrentPosition()
Returns the latest traffic snapshot around the current GPS coordinates if available and null otherwise.
-
Method Details
-
trafficNearCurrentPosition
TrafficSnapshot trafficNearCurrentPosition()Returns the latest traffic snapshot around the current GPS coordinates if available and null otherwise. -
addTrafficNearPositionListener
Adds listener to be notified about traffic updates.- Parameters:
listener
- Listener to add.
-
removeTrafficNearPositionListener
Removes listener to be notified about traffic updates.- Parameters:
listener
- Listener to remove
-