---
title: delegate
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcontentkeysession/delegate
---

# delegate

The content key session’s delegate object.

## Declaration

```swift
weak var delegate: (any AVContentKeySessionDelegate)? { get }
```

## Discussion

Discussion Set the session’s delegate using the setDelegate(_:queue:) method.

## See Also

### Managing the delegate object

- [setDelegate(_:queue:)](avfoundation/avcontentkeysession/setdelegate(_:queue:).md)
- [delegateQueue](avfoundation/avcontentkeysession/delegatequeue.md)
