addOnRailwayCrossingListener

open fun addOnRailwayCrossingListener(listener: NavigationManager.OnRailwayCrossingListener)

Add a OnRailwayCrossingListener to NavigationManager to subscribe to railway event(s).

open fun addOnRailwayCrossingListener(listener: NavigationManager.OnRailwayCrossingListener, @Nullable executor: Executor)

Add a OnRailwayCrossingListener to NavigationManager to subscribe to railway event(s).

Parameters

executor

Executor which will execute listener's callbacks