NavigationProgressObserver
public protocol NavigationProgressObserver : Observer
Declares an observer that can receive navigation progress events.
The NavigationProgressObserver protocol monitors progress along the active route. It informs the caller when the route progress is updated, which is calculated based on the user’s location and the route geometry. Progress updates occur with each location update.
To observe progress updates, implement this interface to create an observer, for example:
class CustomNavigationProgressObserver: NavigationProgressObserver {
func didUpdateProgress(progress: RouteProgress) {
// Handle the updated route progress.
}
}
Add the observer using addProgressObserver(_:) to start receiving updates. To stop observing progress, remove the observer using removeProgressObserver(_:).
-
Notifies that the progress along the route has been updated.
Declaration
Swift
func didUpdateProgress(progress: RouteProgress)Parameters
progressThe progress along the route.
TomTom SDK for iOS (0.71.1)
NavigationProgressObserver