Instance Method

presentTemplate(_:animated:)

Presents a template modally.

Declaration

func presentTemplate(_ templateToPresent: CPTemplate, animated: Bool)

Parameters

templateToPresent

A template to display over currently displayed content on the CarPlay screen. The template must be one of the following types:

animated

A Boolean value that indicates whether the system animates the display of transitioning templates. Set to true to animate the transition.

Discussion

You can present only one template at a time.

See Also

Displaying Templates Modally

func dismissTemplate(animated: Bool)

Dismisses the template that the interface controller is displaying modally.

var presentedTemplate: CPTemplate?

The current modal template displayed by the interface controller.