Contents

templateApplicationScene(_:didSelect:)

Tells the delegate when the user selects a navigation alert while the app is in the background.

Declaration

optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didSelect navigationAlert: CPNavigationAlert)

Parameters

  • templateApplicationScene:

    The active scene.

  • navigationAlert:

    The selected navigation alert.

Discussion

If your navigation app posts a navigation alert while in the background, CarPlay displays a notification banner to the user. If the user taps the banner, CarPlay brings your navigation app to the foreground and calls this method.

See Also

Responding to User Actions