Instance Method

pop(to:animated:)

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

Declaration

func pop(to targetTemplate: CPTemplate, animated: Bool)

Parameters

targetTemplate

The template that you want at the top of the stack. The template must be on the navigation stack before you call this method.

animated

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

See Also

Pushing and Popping Templates

func pushTemplate(CPTemplate, animated: Bool)

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

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.