public interface CPApplicationDelegate extends UIApplicationDelegate
This must be implemented by the same object that serves as your application's delegate object.
UIApplicationDelegate.Block_applicationContinueUserActivityRestorationHandler, UIApplicationDelegate.Block_applicationDidReceiveRemoteNotificationFetchCompletionHandler, UIApplicationDelegate.Block_applicationHandleActionWithIdentifierForLocalNotificationCompletionHandler, UIApplicationDelegate.Block_applicationHandleActionWithIdentifierForLocalNotificationWithResponseInfoCompletionHandler, UIApplicationDelegate.Block_applicationHandleActionWithIdentifierForRemoteNotificationCompletionHandler, UIApplicationDelegate.Block_applicationHandleActionWithIdentifierForRemoteNotificationWithResponseInfoCompletionHandler, UIApplicationDelegate.Block_applicationHandleEventsForBackgroundURLSessionCompletionHandler, UIApplicationDelegate.Block_applicationHandleIntentCompletionHandler, UIApplicationDelegate.Block_applicationHandleWatchKitExtensionRequestReply, UIApplicationDelegate.Block_applicationPerformActionForShortcutItemCompletionHandler, UIApplicationDelegate.Block_applicationPerformFetchWithCompletionHandler| Modifier and Type | Method and Description |
|---|---|
void |
applicationDidConnectCarInterfaceControllerToWindow(UIApplication application,
CPInterfaceController interfaceController,
CPWindow window)
The CarPlay screen has connected and is ready to present content.
|
void |
applicationDidDisconnectCarInterfaceControllerFromWindow(UIApplication application,
CPInterfaceController interfaceController,
CPWindow window)
The CarPlay screen has disconnected.
|
default void |
applicationDidSelectManeuver(UIApplication application,
CPManeuver maneuver)
If your application posts a @c CPManeuver while backgrounded, a notification banner may be presented to the user.
|
default void |
applicationDidSelectNavigationAlert(UIApplication application,
CPNavigationAlert navigationAlert)
If your application posts a @c CPNavigationAlert while backgrounded, a notification banner may be presented to the user.
|
applicationConfigurationForConnectingSceneSessionOptions, applicationContinueUserActivityRestorationHandler, applicationDidBecomeActive, applicationDidChangeStatusBarFrame, applicationDidChangeStatusBarOrientation, applicationDidDecodeRestorableStateWithCoder, applicationDidDiscardSceneSessions, applicationDidEnterBackground, applicationDidFailToContinueUserActivityWithTypeError, applicationDidFailToRegisterForRemoteNotificationsWithError, applicationDidFinishLaunching, applicationDidFinishLaunchingWithOptions, applicationDidReceiveLocalNotification, applicationDidReceiveMemoryWarning, applicationDidReceiveRemoteNotification, applicationDidReceiveRemoteNotificationFetchCompletionHandler, applicationDidRegisterForRemoteNotificationsWithDeviceToken, applicationDidRegisterUserNotificationSettings, applicationDidUpdateUserActivity, applicationHandleActionWithIdentifierForLocalNotificationCompletionHandler, applicationHandleActionWithIdentifierForLocalNotificationWithResponseInfoCompletionHandler, applicationHandleActionWithIdentifierForRemoteNotificationCompletionHandler, applicationHandleActionWithIdentifierForRemoteNotificationWithResponseInfoCompletionHandler, applicationHandleEventsForBackgroundURLSessionCompletionHandler, applicationHandleIntentCompletionHandler, applicationHandleOpenURL, applicationHandlerForIntent, applicationHandleWatchKitExtensionRequestReply, applicationOpenURLOptions, applicationOpenURLSourceApplicationAnnotation, applicationPerformActionForShortcutItemCompletionHandler, applicationPerformFetchWithCompletionHandler, applicationProtectedDataDidBecomeAvailable, applicationProtectedDataWillBecomeUnavailable, applicationShouldAllowExtensionPointIdentifier, applicationShouldAutomaticallyLocalizeKeyCommands, applicationShouldRequestHealthAuthorization, applicationShouldRestoreApplicationState, applicationShouldRestoreSecureApplicationState, applicationShouldSaveApplicationState, applicationShouldSaveSecureApplicationState, applicationSignificantTimeChange, applicationSupportedInterfaceOrientationsForWindow, applicationUserDidAcceptCloudKitShareWithMetadata, applicationViewControllerWithRestorationIdentifierPathCoder, applicationWillChangeStatusBarFrame, applicationWillChangeStatusBarOrientationDuration, applicationWillContinueUserActivityWithType, applicationWillEncodeRestorableStateWithCoder, applicationWillEnterForeground, applicationWillFinishLaunchingWithOptions, applicationWillResignActive, applicationWillTerminate, setWindow, windowvoid applicationDidConnectCarInterfaceControllerToWindow(UIApplication application, CPInterfaceController interfaceController, CPWindow window)
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.
void applicationDidDisconnectCarInterfaceControllerFromWindow(UIApplication application, CPInterfaceController interfaceController, CPWindow window)
default void applicationDidSelectManeuver(UIApplication application, CPManeuver maneuver)
default void applicationDidSelectNavigationAlert(UIApplication application, CPNavigationAlert navigationAlert)