<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 4.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceController/handleUserActivity(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceController(im)handleUserActivity:"
  },
  "title" : "handleUserActivity(_:)"
}
-->

# handleUserActivity(_:)

Responds to Handoff–related activity.

```
func handleUserActivity(_ userInfo: [AnyHashable : Any]?)
```

## Parameters

`userInfo`

The dictionary containing data about the activity. When launching an app from its glance, WatchKit sets this parameter to the dictionary that the glance passed to the [`updateUserActivity(_:userInfo:webpageURL:)`](/documentation/WatchKit/WKInterfaceController/updateUserActivity(_:userInfo:webpageURL:)) method.

## Discussion

Implement this method in your app’s initial interface controller and use it to respond to Handoff–related activity. If you do not implement the [`handleUserActivity(_:)`](/documentation/WatchKit/WKExtensionDelegate/handleUserActivity(_:)) method in your app’s extension delegate, WatchKit calls this method on your app’s initial interface controller. (If your app uses a page-based interface, WatchKit calls this method for each interface controller that is part of your initial interface.) Your implementation of this method should look at the `userInfo` dictionary and decide what actions (if any) to take. For example, an interface controller in a page-based interface might make itself the current page.

The default implementation of this method does nothing. When overriding this method, do not call `super`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)