CarPlayNavigationViewController

public class CarPlayNavigationViewController : UIViewController
extension CarPlayNavigationViewController: StyleManagerDelegate

CarPlayNavigationViewController is a fully-featured turn-by-turn navigation UI for CarPlay.

Seealso

NavigationViewController
  • Creates a new CarPlay navigation view controller for the given route controller and user interface.

    Postcondition

    Call startNavigationSession(for:) after initializing this object to begin navigation.

    Declaration

    Swift

    required public init(navigationService: NavigationService,
                         mapTemplate: CPMapTemplate,
                         interfaceController: CPInterfaceController,
                         manager: CarPlayManager,
                         styles: [Style]? = nil)

    Parameters

    navigationService

    The navigation service managing location updates for the navigation session.

    mapTemplate

    The map template visible during the navigation session.

    interfaceController

    The interface controller for CarPlay.

    manager

    The manager for CarPlay.

    styles

    The interface styles that the view controller’s internal StyleManager object can select from for display.