Instance Property

userActivities

The user activity information for restoring your app to its previous state.

Declaration

var userActivities: Set<NSUserActivity> { get }

Discussion

If this property contains one or more NSUserActivity objects, use those objects to restore the state of your scene to its previous configuration. You create user activity objects at key moments in your scene's lifetime and register them with the system. Your activity objects specify the tasks your scene was managing. For example, if the user was browsing a web page, your activity object contains the URL of that page. Use the information in the activity object to configure your scene's UI and restore any data associated with the given task.

This property does not contain user activity objects related to Handoff. At connection time, UIKit delivers only the type of a Handoff interaction in the handoffUserActivityType property. Later, it calls additional methods of the delegate to deliver the NSUserActivity object itself.