<!--
{
  "availability" : [
    "watchOS: 3.2.0 - 9.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKExtensionDelegate/handle(_:)-5pyj1",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKExtensionDelegate(im)handleActivity:"
  },
  "title" : "handle(_:)"
}
-->

# handle(_:)

Responds to Handoff–related activity from Siri.

```
optional func handle(_ userActivity: NSUserActivity)
```

## Parameters

`userActivity`

The activity object containing the data associated with the task the user was performing. Use the data to continue the user’s activity in your app on Apple Watch.

## Discussion

The WatchKit app extension calls this method when it receives data associated with a user activity. Use this method to update your app on Apple Watch so that the user can continue the activity from where they left off.

### Handling Activities from SiriKit

This method is called whenever your app is launched to handle a SiriKit intent. Update your app’s user interface based on the `userActivity` parameter. Your app should seamlessly continue the interaction that began in Siri.

By default, the intent provides an <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object whose <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/interaction> property contains both the originating intent and your response. You can add additional, app-specific information by creating a new <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object in your intent’s `confirm` or `handle` method, and adding your data to the activity’s <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/userInfo> dictionary.

When continuing activities from SiriKit:

- Look for the intent specified in the <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/interaction> property. Resume handling this intent in your app.
- Avoid accidentally repeating actions (such as making double payments). For example, check the `INInteraction` object’s `intentResponse` property to see if the action has already been completed.

Intents may launch your app under the following circumstances:

- Some intents always launch the app after the intent is successfully handled (for example, intents with a `continueInApp` response code).
- Your intent’s `handle` and `confirm` methods launch the app when you resolve the intent with a `failureRequiringAppLaunch` (or similar) response code.
- The user can always decide to launch the app at any point in a Siri transaction.

---

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)