---
title: ENGetExposureWindowsHandler
framework: exposurenotification
role: symbol
role_heading: Type Alias
path: exposurenotification/engetexposurewindowshandler
---

# ENGetExposureWindowsHandler

The handler the system invokes when the acquisition of windows completes.

## Declaration

```swift
typealias ENGetExposureWindowsHandler = ([ENExposureWindow]?, (any Error)?) -> Void
```

## Parameters

- `exposureWindows`: An array of available exposure windows. The contents of this array are in no particular order.
- `error`: A successful invocation if nil; otherwise, the error that occured.

## Discussion

Discussion important: This type is available in iOS 12.5, and in iOS 13.5 and later.

## See Also

### Obtaining Exposure Information

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