---
title: "processContentKeyResponse(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcontentkeyrequest/processcontentkeyresponse(_:)"
---

# processContentKeyResponse(_:)

Sends the specified content key response to the receiver for processing.

## Declaration

```swift
func processContentKeyResponse(_ keyResponse: AVContentKeyResponse)
```

## Parameters

- `keyResponse`: An doc://com.apple.avfoundation/documentation/AVFoundation/AVContentKeyResponse object carrying a response to a content key request.

## Discussion

Discussion After receiving a content key request and calling makeStreamingContentKeyRequestData(forApp:contentIdentifier:options:completionHandler:) on that request, you must obtain a response to the request in accordance with the protocol used by the entity that controls the use of the media data. Use this method to provide the content key response, to make protected content available for processing.

## See Also

### Responding to the content key request

- [processContentKeyResponseError(_:)](avfoundation/avcontentkeyrequest/processcontentkeyresponseerror(_:).md)
