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
* vk-NAVIOS-841-history-replay: exposed PushRecoirdHistoryEvent publicly to allow history parser to show this event to users; modified ReplayLocationManager to be able to replay history events in chronological order, including listening to the events; added default history events listener to MapboxNavigationService that will also set route updates from history to router; breaking changes accepted; renamed PushRecordHistoryEvent to UserPushedHistoryEvent
Copy file name to clipboardExpand all lines: Sources/MapboxCoreNavigation/NavigationService.swift
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -476,13 +476,15 @@ public class MapboxNavigationService: NSObject, NavigationService {
476
476
Intializes a new `NavigationService` for replaying a session from provided `History`.
477
477
478
478
- parameter history: `History` object, containing initial route and location trace to be replayed.
479
+
- parameter customHistoryEventsListener: Custom `ReplayManagerHistoryEventsListener` which will be used to handle replay events. Default value (`nil`) will also loop route assignment events to update the `Router`.
479
480
- parameter customRoutingProvider: Custom `RoutingProvider`, used to create a route during refreshing or rerouting.
480
481
- parameter credentials: Credentials to authorize additional data requests throughout the route.
481
482
- parameter eventsManagerType: An optional events manager type to use while tracking the route.
482
483
- parameter routerType: An optional router type to use for traversing the route.
483
484
- returns `nil` if provided `historyFileDump` does not contain valid initial route.
0 commit comments