Interface CPApplicationDelegate

  • All Superinterfaces:
    UIApplicationDelegate

    @Deprecated
    public interface CPApplicationDelegate
    extends UIApplicationDelegate
    Deprecated.
    A set of methods that are called by the @c UIApplication singleton in response to CarPlay lifecycle events. This must be implemented by the same object that serves as your application's delegate object. API-Since: 12.0 Deprecated-Since: 13.0
    • Method Detail

      • applicationDidConnectCarInterfaceControllerToWindow

        void applicationDidConnectCarInterfaceControllerToWindow​(@NotNull
                                                                 @NotNull UIApplication application,
                                                                 @NotNull
                                                                 @NotNull CPInterfaceController interfaceController,
                                                                 @NotNull
                                                                 @NotNull CPWindow window)
        Deprecated.
        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] It is the responsibility of the delegate to maintain a reference to the interface controller beyond the scope of this method.
      • applicationDidDisconnectCarInterfaceControllerFromWindow

        void applicationDidDisconnectCarInterfaceControllerFromWindow​(@NotNull
                                                                      @NotNull UIApplication application,
                                                                      @NotNull
                                                                      @NotNull CPInterfaceController interfaceController,
                                                                      @NotNull
                                                                      @NotNull CPWindow window)
        Deprecated.
        The CarPlay screen has disconnected.
      • applicationDidSelectManeuver

        default void applicationDidSelectManeuver​(@NotNull
                                                  @NotNull UIApplication application,
                                                  @NotNull
                                                  @NotNull CPManeuver maneuver)
        Deprecated.
        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.
      • applicationDidSelectNavigationAlert

        default void applicationDidSelectNavigationAlert​(@NotNull
                                                         @NotNull UIApplication application,
                                                         @NotNull
                                                         @NotNull CPNavigationAlert navigationAlert)
        Deprecated.
        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.