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

# delegate

The delegate object for the capture file output.

## Declaration

```swift
unowned(unsafe) var delegate: (any AVCaptureFileOutputDelegate)? { get set }
```

## Discussion

Discussion The delegate is an object conforming to the AVCaptureFileOutputDelegate protocol that will be able to monitor and control recording along exact sample boundaries.

## See Also

### Setting file output properties

- [maxRecordedDuration](avfoundation/avcapturefileoutput/maxrecordedduration.md)
- [maxRecordedFileSize](avfoundation/avcapturefileoutput/maxrecordedfilesize.md)
- [minFreeDiskSpaceLimit](avfoundation/avcapturefileoutput/minfreediskspacelimit.md)
- [outputFileURL](avfoundation/avcapturefileoutput/outputfileurl.md)
- [recordedDuration](avfoundation/avcapturefileoutput/recordedduration.md)
- [recordedFileSize](avfoundation/avcapturefileoutput/recordedfilesize.md)
- [isRecording](avfoundation/avcapturefileoutput/isrecording.md)
- [isRecordingPaused](avfoundation/avcapturefileoutput/isrecordingpaused.md)
