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

# delegate

A delegate object that receives depth data.

## Declaration

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

## Discussion

Discussion This property is read-only. You set the delegate object and the dispatch queue for calling delegate methods together using the setDelegate(_:callbackQueue:) method.

## See Also

### Receiving captured depth data

- [setDelegate(_:callbackQueue:)](avfoundation/avcapturedepthdataoutput/setdelegate(_:callbackqueue:).md)
- [delegateCallbackQueue](avfoundation/avcapturedepthdataoutput/delegatecallbackqueue.md)
- [AVCaptureDepthDataOutputDelegate](avfoundation/avcapturedepthdataoutputdelegate.md)
