MwxSceneDelegate

open class MwxSceneDelegate : UIResponder, UIWindowSceneDelegate

The core methods you use to respond to life-cycle events occurring within a scene.

Window

  • The main window associated with the scene.

    Declaration

    Swift

    open var window: UIWindow?

Lifecycle State Transitioning

  • Tells the delegate about the addition of a scene to the app.

    Declaration

    Swift

    open func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)

    Parameters

    scene

    The scene object being connected to your app.

    session

    The session object containing details about the scene’s configuration.

    options

    Additional options to use when configuring the scene. Use the information in this object to handle actions that caused the creation of the scene. For example, use it to respond to a quick action selected by the user.

  • Tells the delegate that UIKit removed a scene from your app.

    Declaration

    Swift

    open func sceneDidDisconnect(_ scene: UIScene)

    Parameters

    scene

    The scene that UIKit disconnected from your app.

  • Tells the delegate that the scene became active and is now responding to user events.

    Declaration

    Swift

    open func sceneDidBecomeActive(_ scene: UIScene)

    Parameters

    scene

    The scene that became active and is now responding to user events.

  • Tells the delegate that the scene is about to resign the active state and stop responding to user events.

    Declaration

    Swift

    open func sceneWillResignActive(_ scene: UIScene)

    Parameters

    scene

    The scene that is about to stop responding to user events.

  • Tells the delegate that the scene is about to begin running in the foreground and become visible to the user.

    Declaration

    Swift

    open func sceneWillEnterForeground(_ scene: UIScene)

    Parameters

    scene

    The scene that is about to enter the foreground.

  • Tells the delegate that the scene is running in the background and is no longer onscreen.

    Declaration

    Swift

    open func sceneDidEnterBackground(_ scene: UIScene)

    Parameters

    scene

    The scene that entered the background.