UIApplicationDelegate.ContinueUserActivity(UIApplication, NSUserActivity, UIApplicationRestorationHandler) Method

Definition

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.

[Foundation.Export("application:continueUserActivity:restorationHandler:")]
[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

Parameters

application
UIApplication

The UIApplication singleton.

userActivity
NSUserActivity

The user activity identifier.

completionHandler
UIApplicationRestorationHandler

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

Returns

true if the app handled the user activity.

Attributes

Remarks

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:


<key>NSUserActivityTypes</key>
<array>
		<string>com.xamarin.HandOffDemo.verb</string>
</array>              

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