---
title: "addContentKeyRecipient(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcontentkeysession/addcontentkeyrecipient(_:)"
---

# addContentKeyRecipient(_:)

Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session.

## Declaration

```swift
func addContentKeyRecipient(_ recipient: any AVContentKeyRecipient)
```

## Parameters

- `recipient`: The content key recipient to use for the session.

## Discussion

Discussion Don’t add a recipient to a session that has expired or had already begun to process media data.

## See Also

### Managing content key recipients

- [contentKeyRecipients](avfoundation/avcontentkeysession/contentkeyrecipients.md)
- [AVContentKeyRecipient](avfoundation/avcontentkeyrecipient.md)
- [removeContentKeyRecipient(_:)](avfoundation/avcontentkeysession/removecontentkeyrecipient(_:).md)
