Interface CPTemplateApplicationSceneDelegate

    • Method Detail

      • templateApplicationSceneDidConnectInterfaceControllerToWindow

        default void templateApplicationSceneDidConnectInterfaceControllerToWindow​(CPTemplateApplicationScene templateApplicationScene,
                                                                                   CPInterfaceController interfaceController,
                                                                                   CPWindow window)
        The CarPlay screen has connected and is ready to present content. Your app should create its view controller and assign it to the @c rootViewController property of this window. [@note] The interfaceController object will be strongly retained by the CPTemplateApplicationScene, the delegate does not need to retain it. [@note] This method is provided only for navigation apps; other apps should use the variant that does not provide a window.
      • templateApplicationSceneDidDisconnectInterfaceControllerFromWindow

        default void templateApplicationSceneDidDisconnectInterfaceControllerFromWindow​(CPTemplateApplicationScene templateApplicationScene,
                                                                                        CPInterfaceController interfaceController,
                                                                                        CPWindow window)
        The CarPlay screen has disconnected. [@note] This method is provided only for navigation apps; other apps should use the variant that does not provide a window.
      • templateApplicationSceneDidSelectManeuver

        default void templateApplicationSceneDidSelectManeuver​(CPTemplateApplicationScene templateApplicationScene,
                                                               CPManeuver maneuver)
        If your application posts a @c CPManeuver while backgrounded, a notification banner may be presented to the user. If the user taps on that banner, your application will launch on the car screen and this method will be called with the maneuver the user tapped.
      • templateApplicationSceneDidSelectNavigationAlert

        default void templateApplicationSceneDidSelectNavigationAlert​(CPTemplateApplicationScene templateApplicationScene,
                                                                      CPNavigationAlert navigationAlert)
        If your application posts a @c CPNavigationAlert while backgrounded, a notification banner may be presented to the user. If the user taps on that banner, your application will launch on the car screen and this method will be called with the alert the user tapped.
      • templateApplicationSceneDidConnectInterfaceController

        default void templateApplicationSceneDidConnectInterfaceController​(CPTemplateApplicationScene templateApplicationScene,
                                                                           CPInterfaceController interfaceController)
        The CarPlay screen has connected and is ready to present content. Your app should create its view controller and assign it to the @c rootViewController property of this window. [@note] The interfaceController object will be strongly retained by the CPTemplateApplicationScene, the delegate does not need to retain it.
      • templateApplicationSceneDidDisconnectInterfaceController

        default void templateApplicationSceneDidDisconnectInterfaceController​(CPTemplateApplicationScene templateApplicationScene,
                                                                              CPInterfaceController interfaceController)
        The CarPlay screen has disconnected.