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

# handle(_:)

Tells the delegate that the app has received one or more background tasks.

```
optional func handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>)
```

## Parameters

`backgroundTasks`

A set containing one or more background tasks.

## Discussion

The system calls this method after launching your app to handle a background task. Use this method to handle the specified tasks. Call each tasks’s [`setTaskCompletedWithSnapshot(_:)`](/documentation/WatchKit/WKRefreshBackgroundTask/setTaskCompletedWithSnapshot(_:)) method as soon as the task is complete. For more information on background tasks, see [Using background tasks](/documentation/WatchKit/using-background-tasks).

## See Also

  <doc://com.apple.documentation/documentation/HealthKit/HKHealthStore/recoverActiveWorkoutSession(completion:)>



---

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)