addOnDirectionListener

open fun addOnDirectionListener(listener: NavigationManager.OnDirectionListener)

Add a OnDirectionListener to NavigationManager to subscribe to direction changed event(s).


open fun addOnDirectionListener(listener: NavigationManager.OnDirectionListener, @Nullable executor: Executor)

Add a OnDirectionListener to NavigationManager to subscribe to direction changed event(s).

Parameters

executor

Executor which will execute listener's callbacks