<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSContext/addProgressReportingCapabilities(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSContext(im)addProgressReportingCapabilities:"
  },
  "title" : "addProgressReportingCapabilities(_:)"
}
-->

# addProgressReportingCapabilities(_:)

Adds a progress reporting capability to the set of capabilities for the context.

```
func addProgressReportingCapabilities(_ capabilities: Set<CLSProgressReportingCapability>)
```

## Discussion

Use this method at the time you create a context to indicate what kinds of metrics, like duration, a score, or a binary result, that you record for the context. This helps teachers to understand what to expect when assigning a context.

By default, all contexts have a [`CLSProgressReportingCapability.Kind.duration`](/documentation/ClassKit/CLSProgressReportingCapability/Kind-swift.enum/duration) capability, because the framework records duration automatically. But you can add others, according to which metrics you record. You can also add another duration capability, but because a context can have only one capability of a given kind, yours supersedes the default.

To remove all capabilities that you previously added, call the [`resetProgressReportingCapabilities()`](/documentation/ClassKit/CLSContext/resetProgressReportingCapabilities()) method. This restores the context to its default state, which is to have only the default duration capability.

---

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)