UIApplicationDelegate.ContinueUserActivity(UIApplication, NSUserActivity, UIApplicationRestorationHandler) UIApplicationDelegate.ContinueUserActivity(UIApplication, NSUserActivity, UIApplicationRestorationHandler) Method


Informs the app that there is data associated with continuing a task specified as a NSUserActivity object, and then returns whether the app continued the activity.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ContinueUserActivity (UIKit.UIApplication application, Foundation.NSUserActivity userActivity, UIKit.UIApplicationRestorationHandler completionHandler);
abstract member ContinueUserActivity : UIKit.UIApplication * Foundation.NSUserActivity * UIKit.UIApplicationRestorationHandler -> bool
override this.ContinueUserActivity : UIKit.UIApplication * Foundation.NSUserActivity * UIKit.UIApplicationRestorationHandler -> bool


UIApplication UIApplication

The UIApplication singleton.

NSUserActivity NSUserActivity

The user activity identifier.

UIApplicationRestorationHandler UIApplicationRestorationHandler

System-provided callback that can be called with appropriate UIResponder or UIDocument objects.


true if the app handled the user activity.


The system calls this method if the application has registered its ability to handle the userActivity and WillContinueUserActivity(UIApplication, String) has returned true.

An application indicates interest in a particular userActivityType by adding the value to it's info.plist as a T:System.String value in an array called NSUserActivityType. By convention, the activity type begins with a domain-reversed string identifying the developer:


The completionHandler is a system-provided function that takes an array of UIResponder objects that should have an opportunity to handle the userActivity. The system will call the RestoreUserActivityState(NSUserActivity) method on each of these objects.

Applies to