<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeySessionDelegate/contentKeySession(_:didUpdatePersistableContentKey:forContentKeyIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVContentKeySessionDelegate(im)contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:"
  },
  "title" : "contentKeySession(_:didUpdatePersistableContentKey:forContentKeyIdentifier:)"
}
-->

# contentKeySession(_:didUpdatePersistableContentKey:forContentKeyIdentifier:)

Provides the receiver with an updated persistable content key for a specific key request.

```
optional func contentKeySession(_ session: AVContentKeySession, didUpdatePersistableContentKey persistableContentKey: Data, forContentKeyIdentifier keyIdentifier: Any)
```

## Parameters

`session`

The content key session that is providing the updated persistable content key.

`persistableContentKey`

The updated persistent content key data. This data can be stored offline and used to answer future content key requests with the matching key identifier.

`keyIdentifier`

A container- and protocol-specific identifier for the updated persistent content key.

## Discussion

If the content key session provides updated persistable content key data, previous key data is no longer valid and cannot be used to answer future loading requests.

---

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)