Contents

CPWindow

A window that displays its content on the CarPlay screen.

Declaration

class CPWindow

Overview

Navigation apps use a window to render their maps, and CarPlay provides one via the scene delegate’s templateApplicationScene(_:didConnect:to:) method. For all other categories of apps, you use templates exclusively to draw your user interface, and your scene delegate must implement templateApplicationScene(_:didConnect:) instead.

When CarPlay launches your navigation app, instantiate your map-drawing view controller and assign it to the window’s rootViewController property. This becomes the base CarPlay view and is for drawing maps exclusively. You use templates for all other user interface elements.

The base view of a navigation app does not receive tap or drag events.

Topics

Accessing the Scene

Layout

See Also

Accessing the Window