---
title: "contentKeySessionContentProtectionSessionIdentifierDidChange(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcontentkeysessiondelegate/contentkeysessioncontentprotectionsessionidentifierdidchange(_:)"
---

# contentKeySessionContentProtectionSessionIdentifierDidChange(_:)

Tells the receiver the content protection session identifier changed.

## Declaration

```swift
optional func contentKeySessionContentProtectionSessionIdentifierDidChange(_ session: AVContentKeySession)
```

## Parameters

- `session`: The content key session to be notified.

## See Also

### Updating and retrying content key requests

- [contentKeySession(_:didProvide:forInitializationData:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didprovide:forinitializationdata:).md)
- [contentKeySession(_:externalProtectionStatusDidChangeFor:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:externalprotectionstatusdidchangefor:).md)
- [contentKeySession(_:didUpdatePersistableContentKey:forContentKeyIdentifier:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:didupdatepersistablecontentkey:forcontentkeyidentifier:).md)
- [contentKeySession(_:shouldRetry:reason:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:shouldretry:reason:).md)
- [AVContentKeyRequest.RetryReason](avfoundation/avcontentkeyrequest/retryreason.md)
- [contentKeySession(_:contentKeyRequest:didFailWithError:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:contentkeyrequest:didfailwitherror:).md)
- [contentKeySession(_:contentKeyRequestDidSucceed:)](avfoundation/avcontentkeysessiondelegate/contentkeysession(_:contentkeyrequestdidsucceed:).md)
- [contentKeySessionDidGenerateExpiredSessionReport(_:)](avfoundation/avcontentkeysessiondelegate/contentkeysessiondidgenerateexpiredsessionreport(_:).md)
