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

# delegate

Accesses the metadata collector’s delegate object.

## Declaration

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

## Discussion

Discussion The delegate is held using a zeroing-weak reference, so this property will have a value of nil after a delegate that was previously set has been deallocated. This property is not key-value observable.

## See Also

### Accessing the delegate and callback queue

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