---
title: fileOutput
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avcaptureview/fileoutput
---

# fileOutput

The capture file output used to record media data.

## Declaration

```swift
var fileOutput: AVCaptureFileOutput? { get }
```

## Discussion

Discussion The value of this property is the first capture file output object contained in the session’s outputs array, or nil if it has no outputs. In the latter case, the capture view disables the start recording button. However, it may still enable the controls for choosing input sources.
