---
title: sampleBufferDelegate
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturevideodataoutput/samplebufferdelegate
---

# sampleBufferDelegate

The capture object’s delegate.

## Declaration

```swift
var sampleBufferDelegate: (any AVCaptureVideoDataOutputSampleBufferDelegate)? { get }
```

## Discussion

Discussion The delegate receives sample buffers after they are captured. You set the delegate using setSampleBufferDelegate(_:queue:).

## See Also

### Receiving captured video data

- [setSampleBufferDelegate(_:queue:)](avfoundation/avcapturevideodataoutput/setsamplebufferdelegate(_:queue:).md)
- [sampleBufferCallbackQueue](avfoundation/avcapturevideodataoutput/samplebuffercallbackqueue.md)
- [AVCaptureVideoDataOutputSampleBufferDelegate](avfoundation/avcapturevideodataoutputsamplebufferdelegate.md)
