Protocol

CPApplicationDelegate

The interface for handling CarPlay life cycle events.

Overview

You must implement CPApplicationDelegate on the same object that serves as the app delegate to your app.

Topics

Connecting to the CarPlay Interface

func application(UIApplication, didConnectCarInterfaceController: CPInterfaceController, to: CPMapContentWindow)

Tells the app delegate that the app connected to the CarPlay interface.

Required.

func application(UIApplication, didDisconnectCarInterfaceController: CPInterfaceController, from: CPMapContentWindow)

Tells the app delegate that the app disconnected from the CarPlay interface.

Required.

Receiving the Selected Maneuver

func application(UIApplication, didSelect: CPManeuver)

Tells the app delegate that the user selected a maneuver.

Handling Navigation Alert Actions

func application(UIApplication, didSelect: CPNavigationAlert)

Tells the app delegate that the user selected an action from a navigation alert.

Relationships

See Also

First Steps

class CPMapTemplate

Control the CarPlay display using a map template.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software