You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libnavigation-core/src/main/java/com/mapbox/navigation/core/MapboxNavigation.kt
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -856,8 +856,7 @@ class MapboxNavigation @VisibleForTesting internal constructor(
856
856
/***
857
857
* Sets routes to preview.
858
858
* Triggers an update in [RoutesPreviewObserver] and changes [MapboxNavigation.getRoutesPreview].
859
-
* Routes preview requires async processing, so new routes won't be immediately available in [RoutesPreviewObserver] and [MapboxNavigation.getRoutesPreview].
860
-
* Subscribe for updates using [MapboxNavigation.registerRoutesPreviewObserver] to receive new routes preview when processing will be completed.
859
+
* Preview state is updated asynchronously as it requires the SDK to process routes and compute alternative metadata. Subscribe for updates using [MapboxNavigation.registerRoutesPreviewObserver] to receive new routes preview state when the processing will be completed.
861
860
*
862
861
* If [routes] isn't empty, the route with [primaryRouteIndex] is considered as primary, the others as alternatives.
863
862
* To cleanup routes preview state pass an empty list as [routes].
0 commit comments