---
title: "eventDidReachThreshold(_:activity:)"
framework: Device Activity
role: symbol
role_heading: Instance Method
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+]
path: "deviceactivity/deviceactivitymonitor/eventdidreachthreshold(_:activity:)"
---

# eventDidReachThreshold(_:activity:)

Indicates that the activity reached its threshold.

## Declaration

```swift
func eventDidReachThreshold(_ event: DeviceActivityEvent.Name, activity: DeviceActivityName)
```

## Parameters

- `event`: The name of the event.
- `activity`: The name of the activity.

## Discussion

Discussion The system invokes this method when use of the activity reaches its threshold.

## See Also

### Monitoring Event Thresholds

- [eventWillReachThresholdWarning(_:activity:)](deviceactivity/deviceactivitymonitor/eventwillreachthresholdwarning(_:activity:).md)
