Instance Method

application(_:didSelect:)

Tells the app delegate that the user selected an action from a navigation alert.

Declaration

optional func application(_ application: UIApplication, didSelect navigationAlert: CPNavigationAlert)

Parameters

application

Your singleton app object.

navigationAlert

The alert tapped by the user.

Discussion

If your app posts a navigation alert while running in the background, CarPlay may display a notification banner. If the user taps the banner, CarPlay displays your app on the car screen and calls this method.