---
title: SecKeychainEvent.unlockEvent
framework: security
role: symbol
role_heading: Case
path: security/seckeychainevent/unlockevent
---

# SecKeychainEvent.unlockEvent

Indicates a keychain was successfully unlocked.

## Declaration

```swift
case unlockEvent
```

## Discussion

Discussion It is impossible to distinguish between an unlock event caused by an explicit request and one that occurred automatically because the keychain was needed to perform an operation. In either case, however, the pid parameter in the SecKeychainCallbackInfo structure does return the ID of the process whose actions caused the unlock event.
