<!--
{
  "availability" : [
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKIntentDidRunRefreshBackgroundTask",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKIntentDidRunRefreshBackgroundTask"
  },
  "title" : "WKIntentDidRunRefreshBackgroundTask"
}
-->

# WKIntentDidRunRefreshBackgroundTask

A background task used to update your app after a SiriKit intent runs.

```
class WKIntentDidRunRefreshBackgroundTask
```

## Overview

Intent-based shortcuts can update your app’s state; however, the intent executes in a separate process from your WatchKit extension. To update the app, the system schedules this task whenever one of your intents finishes executing. Use this task to check for any updates to your app’s state, and to make sure its visible interfaces are current. For example, you can update all of your app’s snapshot, complications, and relevant shortcuts.

Don’t subclass or create instances of this class. Instead, the system instantiates a [`WKIntentDidRunRefreshBackgroundTask`](/documentation/WatchKit/WKIntentDidRunRefreshBackgroundTask) object and passes the task object to your app delegate’s [`handle(_:)`](/documentation/WatchKit/WKApplicationDelegate/handle(_:)-4vdjo) method.

> Note:
> In watchOS 9 and later, SwiftUI Background tasks are the preferred way to handle background tasks and interactions. For more information, <doc://com.apple.documentation/documentation/SwiftUI/Scene/backgroundTask(_:action:)>.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`WKRefreshBackgroundTask`](/documentation/WatchKit/WKRefreshBackgroundTask)

---

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)