addProgressChangeListener

open fun addProgressChangeListener(navigation: MapboxNavigation)

Can be used to automatically drive the map camera, puck and route updateswhen STARTED.

Use removeProgressChangeListener when the session is finished to avoid leaks.

See also

com.mapbox.navigation.core.MapboxNavigation

MapboxNavigation#startTripSession()

Parameters

navigation

to add the progress listeners

open fun addProgressChangeListener(navigation: MapboxNavigation, enableVanishingRouteLine: Boolean)

Deprecated

Use addProgressChangeListener Can be used to automatically drive the map camera, puck and route updateswhen STARTED.

Use removeProgressChangeListener when the session is finished to avoid leaks.

See also

com.mapbox.navigation.core.MapboxNavigation

MapboxNavigation#startTripSession()

Parameters

navigation

to add the progress listeners

enableVanishingRouteLine

determines if the route line should vanish behind the puck.