---
title: respondByRequestingPersistableContentKeyRequest()
framework: avfoundation
role: symbol
role_heading: Instance Method
platforms: [iOS 10.3+, iPadOS 10.3+, Mac Catalyst 13.1+]
path: avfoundation/avcontentkeyrequest/respondbyrequestingpersistablecontentkeyrequest()
---

# respondByRequestingPersistableContentKeyRequest()

Tells the receiver that the app requires a persistable content key request object for processing.

## Declaration

```swift
func respondByRequestingPersistableContentKeyRequest()
```

## Discussion

Discussion To create a key that persists across multiple playback sessions, use this method to request an AVPersistableContentKeyRequest object. If the underlying protocol supports persistable content keys, the delegate receives a persistable content key request via the contentKeySession(_:didProvide:) method. An internalInconsistencyException is returned if your delegate does not respond to contentKeySession(_:didProvide:).

## See Also

### Responding to the content key request

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