---
title: threshold
framework: Device Activity
role: symbol
role_heading: Instance Property
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+]
path: deviceactivity/deviceactivityevent/threshold
---

# threshold

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

## Declaration

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

## Discussion

Discussion Once the activity exceeds the threshold, the system invokes the eventDidReachThreshold(_:activity:) method of the application extension’s principal class.

## See Also

### Including Objects in an Event

- [applications](deviceactivity/deviceactivityevent/applications.md)
- [categories](deviceactivity/deviceactivityevent/categories.md)
- [webDomains](deviceactivity/deviceactivityevent/webdomains.md)
