<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceActivity",
  "identifier" : "/documentation/DeviceActivity/DeviceActivityMonitor/eventDidReachThreshold(_:activity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Device Activity"
    ],
    "preciseIdentifier" : "s:14DeviceActivity0aB7MonitorC22eventDidReachThreshold_8activityyAA0aB5EventV4NameV_AA0abJ0VtF"
  },
  "title" : "eventDidReachThreshold(_:activity:)"
}
-->

# eventDidReachThreshold(_:activity:)

Indicates that the activity reached its threshold.

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

## Parameters

`event`

The name of the event.

`activity`

The name of the activity.

## Discussion

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

---

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)