<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeychainEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecKeychainEvent"
  },
  "title" : "SecKeychainEvent"
}
-->

# SecKeychainEvent

The list of keychain events that can trigger a callback.

```
enum SecKeychainEvent
```

## Overview

Keychain Services includes one of these events in the callback you register with [`SecKeychainAddCallback(_:_:_:)`](/documentation/Security/SecKeychainAddCallback(_:_:_:)), using the function signature defined by [`SecKeychainCallback`](/documentation/Security/SecKeychainCallback), to indicate what event triggered the callback.

## Topics

### Constants

[`SecKeychainEvent.lockEvent`](/documentation/Security/SecKeychainEvent/lockEvent)

Indicates a keychain was locked.

[`SecKeychainEvent.unlockEvent`](/documentation/Security/SecKeychainEvent/unlockEvent)

Indicates a keychain was successfully unlocked.

[`SecKeychainEvent.addEvent`](/documentation/Security/SecKeychainEvent/addEvent)

Indicates an item was added to a keychain.

[`SecKeychainEvent.deleteEvent`](/documentation/Security/SecKeychainEvent/deleteEvent)

Indicates an item was deleted from a keychain.

[`SecKeychainEvent.updateEvent`](/documentation/Security/SecKeychainEvent/updateEvent)

Indicates a keychain item was updated.

[`SecKeychainEvent.passwordChangedEvent`](/documentation/Security/SecKeychainEvent/passwordChangedEvent)

Indicates the keychain password was changed.

[`SecKeychainEvent.defaultChangedEvent`](/documentation/Security/SecKeychainEvent/defaultChangedEvent)

Indicates that a different keychain was specified as the default.

[`SecKeychainEvent.dataAccessEvent`](/documentation/Security/SecKeychainEvent/dataAccessEvent)

Indicates a process has accessed a keychain item’s data.

[`SecKeychainEvent.keychainListChangedEvent`](/documentation/Security/SecKeychainEvent/keychainListChangedEvent)

Indicates the list of keychains has changed.

[`SecKeychainEvent.trustSettingsChangedEvent`](/documentation/Security/SecKeychainEvent/trustSettingsChangedEvent)

Indicates trust settings have changed.



---

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)