CarPlayNavigationDelegate
@available(iOS 12.0, *)
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
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func carPlayNavigationViewControllerDidDismiss(_ carPlayNavigationViewController: CarPlayNavigationViewController, byCanceling canceled: Bool)Parameters
carPlayNavigationViewControllerThe CarPlay navigation view controller that was dismissed.
canceledTrue 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.
Install in Dash
CarPlayNavigationDelegate Protocol Reference