Package apple.carplay.protocol
Interface CPApplicationDelegate
-
- All Superinterfaces:
UIApplicationDelegate
public interface CPApplicationDelegate extends UIApplicationDelegate
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIApplicationDelegate
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidapplicationDidConnectCarInterfaceControllerToWindow(UIApplication application, CPInterfaceController interfaceController, CPWindow window)The CarPlay screen has connected and is ready to present content.voidapplicationDidDisconnectCarInterfaceControllerFromWindow(UIApplication application, CPInterfaceController interfaceController, CPWindow window)The CarPlay screen has disconnected.default voidapplicationDidSelectManeuver(UIApplication application, CPManeuver maneuver)If your application posts a @c CPManeuver while backgrounded, a notification banner may be presented to the user.default voidapplicationDidSelectNavigationAlert(UIApplication application, CPNavigationAlert navigationAlert)If your application posts a @c CPNavigationAlert while backgrounded, a notification banner may be presented to the user.-
Methods inherited from interface apple.uikit.protocol.UIApplicationDelegate
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, applicationShouldRequestHealthAuthorization, applicationShouldRestoreApplicationState, applicationShouldRestoreSecureApplicationState, applicationShouldSaveApplicationState, applicationShouldSaveSecureApplicationState, applicationSignificantTimeChange, applicationSupportedInterfaceOrientationsForWindow, applicationUserDidAcceptCloudKitShareWithMetadata, applicationViewControllerWithRestorationIdentifierPathCoder, applicationWillChangeStatusBarFrame, applicationWillChangeStatusBarOrientationDuration, applicationWillContinueUserActivityWithType, applicationWillEncodeRestorableStateWithCoder, applicationWillEnterForeground, applicationWillFinishLaunchingWithOptions, applicationWillResignActive, applicationWillTerminate, setWindow, window
-
-
-
-
Method Detail
-
applicationDidConnectCarInterfaceControllerToWindow
void applicationDidConnectCarInterfaceControllerToWindow(UIApplication application, 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] It is the responsibility of the delegate to maintain a reference to the interface controller beyond the scope of this method.
-
applicationDidDisconnectCarInterfaceControllerFromWindow
void applicationDidDisconnectCarInterfaceControllerFromWindow(UIApplication application, CPInterfaceController interfaceController, CPWindow window)
The CarPlay screen has disconnected.
-
applicationDidSelectManeuver
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. 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(UIApplication application, 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.
-
-