<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_activity_copy_criteria(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@F@xpc_activity_copy_criteria"
  },
  "title" : "xpc_activity_copy_criteria(_:)"
}
-->

# xpc_activity_copy_criteria(_:)

Returns an XPC dictionary that describes the execution criteria of an activity.

```
func xpc_activity_copy_criteria(_ activity: xpc_activity_t) -> xpc_object_t?
```

## Discussion

Returns `NULL` in cases where the activity has already completed, for example, when checking in to an event that finished and wasn’t rescheduled.

---

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)