Type Property

willConnectNotification

A notification indicating that UIKit added a scene to your app.

Declaration

class let willConnectNotification: NSNotification.Name

Discussion

When the user or your app requests a new instance of your user interface, UIKit creates an appropriate UIScene object and places it in the object property of the notification. Use this notification to respond to the addition of the new scene and to begin loading any data that the scene needs to display.

UIKit also calls the scene(_:willConnectTo:options:) method of your scene delegate object.

See Also

Responding to Life Cycle Notifications

class let didDisconnectNotification: NSNotification.Name

A notification indicating that UIKit removed a scene from your app.

Beta
class let willEnterForegroundNotification: NSNotification.Name

A notification indicating that a scene is about to begin running in the foreground and become visible to the user.

Beta
class let didActivateNotification: NSNotification.Name

A notification indicating that the scene is now onscreen and responding to user events.

Beta
class let willDeactivateNotification: NSNotification.Name

A notification indicating that the scene is about to resign the active state and stop responding to user events.

Beta
class let didEnterBackgroundNotification: NSNotification.Name

A notification indicating that the scene is running in the background and is no longer onscreen.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software