---
title: "detectExposures(configuration:completionHandler:)"
framework: exposurenotification
role: symbol
role_heading: Instance Method
path: "exposurenotification/enmanager/detectexposures(configuration:completionhandler:)"
---

# detectExposures(configuration:completionHandler:)

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

## Declaration

```swift
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

Return Value The progress of the method.

## Discussion

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:), 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.

## See Also

### Obtaining Exposure Information

- [detectExposures(configuration:diagnosisKeyURLs:completionHandler:)](exposurenotification/enmanager/detectexposures(configuration:diagnosiskeyurls:completionhandler:).md)
- [getExposureWindows(summary:completionHandler:)](exposurenotification/enmanager/getexposurewindows(summary:completionhandler:).md)
- [ENGetExposureWindowsHandler](exposurenotification/engetexposurewindowshandler.md)
- [getUserTraveled(completionHandler:)](exposurenotification/enmanager/getusertraveled(completionhandler:).md)
- [ENGetUserTraveledHandler](exposurenotification/engetusertraveledhandler.md)
- [getExposureInfo(summary:userExplanation:completionHandler:)](exposurenotification/enmanager/getexposureinfo(summary:userexplanation:completionhandler:).md)
