CarPlayNavigationDelegate

@objc(MBNavigationCarPlayDelegate)
public protocol CarPlayNavigationDelegate

The CarPlayNavigationDelegate protocol provides methods for reacting to significant events during turn-by-turn navigation with CarPlayNavigationViewController.

  • Called when the CarPlay navigation view controller is dismissed, such as when the user ends a trip.

    Declaration

    Swift

    @objc(carPlayNavigationViewControllerDidDismiss:byCanceling:)
    optional 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.