restoreUserActivityState(_:)
Restores the state needed to continue the given user activity.
Declaration
func restoreUserActivityState(_ userActivity: NSUserActivity)Parameters
- userActivity:
The user activity to be continued.
Discussion
Subclasses override this method to restore the responder’s state with the given user activity. The override should use the state data contained in the userInfo dictionary of the given user activity to restore the object.
The system can restore user activities that UIDocument manages automatically, if you return false from application(_:continue:restorationHandler:) or if you don’t implement the method. In this situation, the UIDocumentViewController method openDocument(completionHandler:) opens the document, and calls restoreUserActivityState(_:).