<!--
{
  "availability" : [
    "iOS: 12.5.0 - 27.0.0",
    "iPadOS: 12.5.0 - 27.0.0",
    "macCatalyst: 12.5.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/ENManager/detectExposures(configuration:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Exposure Notification"
    ],
    "preciseIdentifier" : "c:objc(cs)ENManager(im)detectExposuresWithConfiguration:completionHandler:"
  },
  "title" : "detectExposures(configuration:completionHandler:)"
}
-->

# detectExposures(configuration:completionHandler:)

Detects exposures using the specified configuration to control the scoring algorithm.

```
func detectExposures(configuration: ENExposureConfiguration, completionHandler: @escaping ENDetectExposuresHandler) -> Progress
```

## Parameters

`configuration`

The exposure configuration.

`completionHandler`

The completion handler that the framework calls when the method completes.

## Return Value

The progress of the method.

## Discussion

> Important:
> This method is available in iOS 12.5, and in iOS 13.5 and later.

This method allows recalculating a new score using different configuration parameters. If you’ve previously called   [`detectExposures(configuration:diagnosisKeyURLs:completionHandler:)`](/documentation/ExposureNotification/ENManager/detectExposures(configuration:diagnosisKeyURLs:completionHandler:)), any keys you submitted in the previous 14 days are cached. Only use this method if your app specifies an `ENAPIVersion` of `2` in its `Info.plist` file, because older versions did not cache keys.

> Important:
> On iOS 13.6 and later, you’re limited to using this method a maximum of 15 times per 24-hour period. If you’re on iOS 13.7 and later and specify `2` as the `ENAPIVersion` in your app’s `Info.plist` file, you’re limited to using this method a maximum of 6 times per 24-hour period.
> 
> On iOS 13.5, you can only submit 15 uncached key files per 24-hour period, regardless of the number of API calls you make.

---

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)