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

# contentKeySession(_:didProvide:)

Provides the receiver with a new content key request object.

## Declaration

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

## Parameters

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

## See Also

### Providing new content key requests

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