Link Search Menu Expand Document

SceneDelegate

public protocol SceneDelegate: _TriviallyConstructible 

Inheritance

_TriviallyConstructible

Default Implementations

scene(_:willConnectTo:options:)

public func scene(_ scene: Scene, willConnectTo: SceneSession,
                    options: Scene.ConnectionOptions) 

sceneDidDisconnect(_:)

public func sceneDidDisconnect(_ scene: Scene) 

sceneWillEnterForeground(_:)

public func sceneWillEnterForeground(_ scene: Scene) 

sceneDidBecomeActive(_:)

public func sceneDidBecomeActive(_ scene: Scene) 

sceneWillResignActive(_:)

public func sceneWillResignActive(_ scene: Scene) 

sceneDidEnterBackground(_:)

public func sceneDidEnterBackground(_ scene: Scene) 

Requirements

scene(_:​willConnectTo:​options:​)

Informs the delegate about the addition of a scene to the application.

func scene(_ scene: Scene, willConnectTo: SceneSession,
             options: Scene.ConnectionOptions)

sceneDidDisconnect(_:​)

Informs the delegate that a scene was removed from the application.

func sceneDidDisconnect(_ scene: Scene)

sceneWillEnterForeground(_:​)

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

func sceneWillEnterForeground(_ scene: Scene)

sceneDidBecomeActive(_:​)

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

func sceneDidBecomeActive(_ scene: Scene)

sceneWillResignActive(_:​)

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

func sceneWillResignActive(_ scene: Scene)

sceneDidEnterBackground(_:​)

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

func sceneDidEnterBackground(_ scene: Scene)