NavigationTripObserver
public protocol NavigationTripObserver : Observer
Important
This is a Public Preview API. It may be changed or removed at any time. An observer to receive navigation trip events.-
Reports that the active route has changed.
Declaration
Swift
func didChangeActiveRoute(snapshot: NavigationSnapshot, reason: RoutePlanChangeReason)
Parameters
snapshot
The navigation snapshot.
reason
The reason for changing the active route.
-
Reports that the routes have changed.
Declaration
Swift
func didChangeRoutes(snapshot: NavigationSnapshot)
Parameters
snapshot
The navigation snapshot.