Package apple.carplay.protocol
Interface CPTemplateApplicationSceneDelegate
-
- All Superinterfaces:
UISceneDelegate
public interface CPTemplateApplicationSceneDelegate extends UISceneDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidtemplateApplicationSceneDidConnectInterfaceController(CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController)The CarPlay screen has connected and is ready to present content.default voidtemplateApplicationSceneDidConnectInterfaceControllerToWindow(CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController, CPWindow window)The CarPlay screen has connected and is ready to present content.default voidtemplateApplicationSceneDidDisconnectInterfaceController(CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController)The CarPlay screen has disconnected.default voidtemplateApplicationSceneDidDisconnectInterfaceControllerFromWindow(CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController, CPWindow window)The CarPlay screen has disconnected.default voidtemplateApplicationSceneDidSelectManeuver(CPTemplateApplicationScene templateApplicationScene, CPManeuver maneuver)If your application posts a @c CPManeuver while backgrounded, a notification banner may be presented to the user.default voidtemplateApplicationSceneDidSelectNavigationAlert(CPTemplateApplicationScene templateApplicationScene, 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.UISceneDelegate
sceneContinueUserActivity, sceneDidBecomeActive, sceneDidDisconnect, sceneDidEnterBackground, sceneDidFailToContinueUserActivityWithTypeError, sceneDidUpdateUserActivity, sceneOpenURLContexts, sceneWillConnectToSessionOptions, sceneWillContinueUserActivityWithType, sceneWillEnterForeground, sceneWillResignActive, stateRestorationActivityForScene
-
-
-
-
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.
-
-