<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceActivity",
  "identifier" : "/documentation/DeviceActivity/DeviceActivityEvent/threshold",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Device Activity"
    ],
    "preciseIdentifier" : "s:14DeviceActivity0aB5EventV9threshold10Foundation14DateComponentsVvp"
  },
  "title" : "threshold"
}
-->

# threshold

The amount of time to monitor the provided applications, categories, and web domains.

```
var threshold: DateComponents { get }
```

## Discussion

Once the activity exceeds the threshold, the system invokes the
[`eventDidReachThreshold(_:activity:)`](/documentation/DeviceActivity/DeviceActivityMonitor/eventDidReachThreshold(_:activity:))
method of the application extension’s principal class.

---

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)