CarPlayNavigationDelegate
public protocol CarPlayNavigationDelegate : AnyObject, UnimplementedLogging
The CarPlayNavigationDelegate
protocol provides methods for reacting to significant events during turn-by-turn navigation with CarPlayNavigationViewController
.
-
carPlayNavigationViewControllerDidDismiss(_:byCanceling:)
Default implementationCalled when the CarPlay navigation view controller is dismissed, such as when the user ends a trip.
Default Implementation
UnimplementedLogging
prints a warning to standard output the first time this method is called.Declaration
Swift
func carPlayNavigationViewControllerDidDismiss(_ carPlayNavigationViewController: CarPlayNavigationViewController, byCanceling canceled: Bool)
Parameters
carPlayNavigationViewController
The CarPlay navigation view controller that was dismissed.
canceled
True if the user dismissed the CarPlay navigation view controller by tapping the Cancel button; false if the navigation view controller dismissed by some other means.