---
title: "handle(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkextensiondelegate/handle(_:)-92ulv"
---

# handle(_:)

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

## Declaration

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

## Parameters

- `backgroundTasks`: A set containing one or more background tasks.

## Mentioned in

Using background tasks

## Discussion

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(_:) method as soon as the task is complete. For more information on background tasks, see Using background tasks.

## See Also

### Related Documentation

- [recoverActiveWorkoutSession(completion:)](healthkit/hkhealthstore/recoveractiveworkoutsession(completion:).md)
