navigateNextRouteLeg

abstract fun navigateNextRouteLeg(routeLegProgress: RouteLegProgress): Boolean

Triggered when RouteProgress.currentState is equal to RouteProgressState.COMPLETE.

Within your implementation, return true to navigate the next route leg. To manually navigate the next route leg, return false and call MapboxNavigation.navigateNextRouteLeg.

Return

true to automatically call MapboxNavigation.navigateNextRouteLeg, false to do it manually

Parameters

routeLegProgress

the latest RouteLegProgress