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

# eventWillReachThresholdWarning(_:activity:)

Warns your app that an activity is about to reach its threshold.

## Declaration

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

## Parameters

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

## Discussion

Discussion When an activity is about to reach its threshold, eventWillReachThresholdWarning warns your app extension of the concluding threshold limit.

## See Also

### Monitoring Event Thresholds

- [eventDidReachThreshold(_:activity:)](deviceactivity/deviceactivitymonitor/eventdidreachthreshold(_:activity:).md)
