Package apple.carplay.protocol
Interface CPTemplateApplicationSceneDelegate
-
- All Superinterfaces:
UISceneDelegate
public interface CPTemplateApplicationSceneDelegate extends UISceneDelegate
API-Since: 13.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcontentStyleDidChange(long contentStyle)The CarPlay system suggested content style for this scene has changed.default voidtemplateApplicationSceneDidConnectInterfaceController(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull CPInterfaceController interfaceController)The CarPlay screen has connected and is ready to present content.default voidtemplateApplicationSceneDidConnectInterfaceControllerToWindow(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull CPInterfaceController interfaceController, @NotNull CPWindow window)The CarPlay screen has connected and is ready to present content.default voidtemplateApplicationSceneDidDisconnectInterfaceController(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull CPInterfaceController interfaceController)The CarPlay screen has disconnected.default voidtemplateApplicationSceneDidDisconnectInterfaceControllerFromWindow(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull CPInterfaceController interfaceController, @NotNull CPWindow window)The CarPlay screen has disconnected.default voidtemplateApplicationSceneDidSelectManeuver(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull CPManeuver maneuver)If your application posts a @c CPManeuver while backgrounded, a notification banner may be presented to the user.default voidtemplateApplicationSceneDidSelectNavigationAlert(@NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull 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, sceneRestoreInteractionStateWithUserActivity, sceneWillConnectToSessionOptions, sceneWillContinueUserActivityWithType, sceneWillEnterForeground, sceneWillResignActive, stateRestorationActivityForScene
-
-
-
-
Method Detail
-
templateApplicationSceneDidConnectInterfaceControllerToWindow
default void templateApplicationSceneDidConnectInterfaceControllerToWindow(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull CPInterfaceController interfaceController, @NotNull @NotNull 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(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull CPInterfaceController interfaceController, @NotNull @NotNull 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(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull 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(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull 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(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull 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. API-Since: 14.0
-
templateApplicationSceneDidDisconnectInterfaceController
default void templateApplicationSceneDidDisconnectInterfaceController(@NotNull @NotNull CPTemplateApplicationScene templateApplicationScene, @NotNull @NotNull CPInterfaceController interfaceController)The CarPlay screen has disconnected. API-Since: 14.0
-
contentStyleDidChange
default void contentStyleDidChange(long contentStyle)
The CarPlay system suggested content style for this scene has changed. API-Since: 15.4
-
-