setOnRouteSelectionChangeListener

open fun setOnRouteSelectionChangeListener(listener: OnRouteSelectionChangeListener)

Set a OnRouteSelectionChangeListener to know which route the user has currentlyselected as their primary route.

Parameters

listener

a listener which lets you know when the user has changedthe primary route and provides the current directionroute which the user has selected