---
title: "contentKeySession(_:didProvide:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didprovide:)-2wdgz"
---

# contentKeySession(_:didProvide:)

Provides the receiver with a new content key request object to process a persistable content key.

## Declaration

```swift
optional func contentKeySession(_ session: AVContentKeySession, didProvide keyRequest: AVPersistableContentKeyRequest)
```

## Parameters

- `session`: The content key session that is providing the new persistable content key request.
- `keyRequest`: The request for a new persistable content key.

## See Also

### Providing new content key requests

- [contentKeySession(_:didProvide:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didprovide:)-3coq5.md)
- [contentKeySession(_:didProvideRenewingContentKeyRequest:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didproviderenewingcontentkeyrequest:).md)
