---
title: "contentKeySession(_:didProvideRenewingContentKeyRequest:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didproviderenewingcontentkeyrequest:)"
---

# contentKeySession(_:didProvideRenewingContentKeyRequest:)

Provides the receiver with a new content key request object for the renewal of an existing content key.

## Declaration

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

## Parameters

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

## See Also

### Providing new content key requests

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