<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPC_ACTIVITY_STATE_CONTINUE",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@Ea@XPC_ACTIVITY_STATE_CHECK_IN@XPC_ACTIVITY_STATE_CONTINUE"
  },
  "title" : "XPC_ACTIVITY_STATE_CONTINUE"
}
-->

# XPC_ACTIVITY_STATE_CONTINUE

The activity continues its operation beyond the return of its handler block.

```
var XPC_ACTIVITY_STATE_CONTINUE: Int { get }
```

## Discussion

An app may pass this value to [`xpc_activity_set_state(_:_:)`](/documentation/XPC/xpc_activity_set_state(_:_:)) to indicate that the activity continues its operation beyond the return of its handler block. Use this to extend an activity to include asynchronous operations. The system doesn’t invoke the activity’s handler block again until the state updates to either [`XPC_ACTIVITY_STATE_DEFER`](/documentation/XPC/XPC_ACTIVITY_STATE_DEFER) or, in the case of repeating activity, [`XPC_ACTIVITY_STATE_DONE`](/documentation/XPC/XPC_ACTIVITY_STATE_DONE).

---

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)