Package apple.uikit.protocol
Interface UISceneDelegate
-
- All Known Subinterfaces:
CPTemplateApplicationDashboardSceneDelegate,CPTemplateApplicationInstrumentClusterSceneDelegate,CPTemplateApplicationSceneDelegate,UIWindowSceneDelegate
public interface UISceneDelegateAPI-Since: 13.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsceneContinueUserActivity(@NotNull UIScene scene, @NotNull NSUserActivity userActivity)default voidsceneDidBecomeActive(@NotNull UIScene scene)default voidsceneDidDisconnect(@NotNull UIScene scene)default voidsceneDidEnterBackground(@NotNull UIScene scene)default voidsceneDidFailToContinueUserActivityWithTypeError(@NotNull UIScene scene, @NotNull java.lang.String userActivityType, @NotNull NSError error)default voidsceneDidUpdateUserActivity(@NotNull UIScene scene, @NotNull NSUserActivity userActivity)default voidsceneOpenURLContexts(@NotNull UIScene scene, @NotNull NSSet<? extends UIOpenURLContext> URLContexts)default voidsceneRestoreInteractionStateWithUserActivity(@NotNull UIScene scene, @NotNull NSUserActivity stateRestorationActivity)This will be called after scene connection, but before activation, and will provide the activity that was last supplied to the stateRestorationActivityForScene callback, or set on the UISceneSession.stateRestorationActivity property.default voidsceneWillConnectToSessionOptions(@NotNull UIScene scene, @NotNull UISceneSession session, @NotNull UISceneConnectionOptions connectionOptions)default voidsceneWillContinueUserActivityWithType(@NotNull UIScene scene, @NotNull java.lang.String userActivityType)default voidsceneWillEnterForeground(@NotNull UIScene scene)default voidsceneWillResignActive(@NotNull UIScene scene)default @Nullable NSUserActivitystateRestorationActivityForScene(@NotNull UIScene scene)This is the NSUserActivity that will be used to restore state when the Scene reconnects.
-
-
-
Method Detail
-
sceneContinueUserActivity
default void sceneContinueUserActivity(@NotNull @NotNull UIScene scene, @NotNull @NotNull NSUserActivity userActivity)
-
sceneDidFailToContinueUserActivityWithTypeError
default void sceneDidFailToContinueUserActivityWithTypeError(@NotNull @NotNull UIScene scene, @NotNull @NotNull java.lang.String userActivityType, @NotNull @NotNull NSError error)
-
sceneDidUpdateUserActivity
default void sceneDidUpdateUserActivity(@NotNull @NotNull UIScene scene, @NotNull @NotNull NSUserActivity userActivity)
-
sceneOpenURLContexts
default void sceneOpenURLContexts(@NotNull @NotNull UIScene scene, @NotNull @NotNull NSSet<? extends UIOpenURLContext> URLContexts)
-
sceneWillConnectToSessionOptions
default void sceneWillConnectToSessionOptions(@NotNull @NotNull UIScene scene, @NotNull @NotNull UISceneSession session, @NotNull @NotNull UISceneConnectionOptions connectionOptions)
-
sceneWillContinueUserActivityWithType
default void sceneWillContinueUserActivityWithType(@NotNull @NotNull UIScene scene, @NotNull @NotNull java.lang.String userActivityType)
-
sceneDidBecomeActive
default void sceneDidBecomeActive(@NotNull @NotNull UIScene scene)
-
sceneDidDisconnect
default void sceneDidDisconnect(@NotNull @NotNull UIScene scene)
-
sceneDidEnterBackground
default void sceneDidEnterBackground(@NotNull @NotNull UIScene scene)
-
sceneWillEnterForeground
default void sceneWillEnterForeground(@NotNull @NotNull UIScene scene)
-
sceneWillResignActive
default void sceneWillResignActive(@NotNull @NotNull UIScene scene)
-
stateRestorationActivityForScene
@Nullable default @Nullable NSUserActivity stateRestorationActivityForScene(@NotNull @NotNull UIScene scene)
This is the NSUserActivity that will be used to restore state when the Scene reconnects. It can be the same activity used for handoff or spotlight, or it can be a separate activity with a different activity type and/or userInfo. After this method is called, and before the activity is actually saved in the restoration file, if the returned NSUserActivity has a delegate (NSUserActivityDelegate), the method userActivityWillSave is called on the delegate. Additionally, if any UIResponders have the activity set as their userActivity property, the UIResponder updateUserActivityState method is called to update the activity. This is done synchronously and ensures the activity has all info filled in before it is saved.
-
sceneRestoreInteractionStateWithUserActivity
default void sceneRestoreInteractionStateWithUserActivity(@NotNull @NotNull UIScene scene, @NotNull @NotNull NSUserActivity stateRestorationActivity)This will be called after scene connection, but before activation, and will provide the activity that was last supplied to the stateRestorationActivityForScene callback, or set on the UISceneSession.stateRestorationActivity property. Note that, if it's required earlier, this activity is also already available in the UISceneSession.stateRestorationActivity at scene connection time.
-
-