Instance Method

pushTemplate(_:animated:)

Pushes a template onto the navigation stack and updates the CarPlay display.

Declaration

func pushTemplate(_ templateToPush: CPTemplate, animated: Bool)

Parameters

templateToPush

The template to push onto the navigation stack.

animated

Set to true to animate the presentation of the template.

See Also

Pushing and Popping Templates

func popTemplate(animated: Bool)

Pops the top template from the navigation stack and updates the CarPlay display.

func popToRootTemplate(animated: Bool)

Pops all templates on the stack—except the root template—and updates the CarPlay display.

func pop(to: CPTemplate, animated: Bool)

Pops templates until the specified template is at the top of the navigation stack.