addOnTrafficChangedListener

open fun addOnTrafficChangedListener(listener: NavigationManager.OnTrafficChangedListener)

Add a OnTrafficChangedListener to NavigationManager to subscribe to traffic data event(s).

open fun addOnTrafficChangedListener(listener: NavigationManager.OnTrafficChangedListener, @Nullable executor: Executor)

Add a OnTrafficChangedListener to NavigationManager to subscribe to traffic data event(s).

Parameters

executor

Executor which will execute listener's callbacks