WKInterfaceController.HandleUserActivity(NSDictionary) Method

Definition

Indicates that the Watch App was launched as a result of a Handoff action.

[Foundation.Export("handleUserActivity:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'WKExtensionDelegate.HandleUserActivity' instead.")]
public virtual void HandleUserActivity (Foundation.NSDictionary userActivity);
abstract member HandleUserActivity : Foundation.NSDictionary -> unit
override this.HandleUserActivity : Foundation.NSDictionary -> unit

Parameters

userActivity
NSDictionary

A dictionary containing information about the user activity. Set by a Glance controller calling UpdateUserActivity(String, NSDictionary, NSUrl).

This parameter can be null.

Attributes

Remarks

If needed, this method should be overridden in the Watch App's initial WKInterfaceController. If the Watch App uses a page-based interface, this method will be called on each WKInterfaceController in the initial interface.

Application developers who override this method should not call the base implementation.

Applies to