<!--
{
  "availability" : [
    "iOS: 14.4.0 - 27.0.0",
    "iPadOS: 14.4.0 - 27.0.0",
    "macCatalyst: 14.4.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/ENManager/diagnosisKeysAvailableHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Exposure Notification"
    ],
    "preciseIdentifier" : "c:objc(cs)ENManager(py)diagnosisKeysAvailableHandler"
  },
  "title" : "diagnosisKeysAvailableHandler"
}
-->

# diagnosisKeysAvailableHandler

The handler that receives available diagnosis keys after a successful preauthorization.

```
var diagnosisKeysAvailableHandler: ENDiagnosisKeysAvailableHandler? { get set }
```

## Discussion

Set this property before calling  [`requestPreAuthorizedDiagnosisKeys(completionHandler:)`](/documentation/ExposureNotification/ENManager/requestPreAuthorizedDiagnosisKeys(completionHandler:)) to ensure [`ENManager`](/documentation/ExposureNotification/ENManager) can deliver the keys. Authorization expires after five days or the first time this method is called after authorization, whichever comes first.

---

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)