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

# XPC_ACTIVITY_STATE_DEFER

The activity needs to wait until it satisfies its criteria again.

```
var XPC_ACTIVITY_STATE_DEFER: Int { get }
```

## Discussion

An app may pass this value to [`xpc_activity_set_state(_:_:)`](/documentation/XPC/xpc_activity_set_state(_:_:)) to indicate that the system needs to defer the activity (place it back into the [`XPC_ACTIVITY_STATE_WAIT`](/documentation/XPC/XPC_ACTIVITY_STATE_WAIT) state) until satisfying its criteria again. Deferring an activity doesn’t reset any of its time-based criteria; it remains past due. Do this in response to observing [`xpc_activity_should_defer(_:)`](/documentation/XPC/xpc_activity_should_defer(_:)).

---

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)