---
title: "addOutput(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturesession/addoutput(_:)"
---

# addOutput(_:)

Adds an output to the capture session.

## Declaration

```swift
func addOutput(_ output: AVCaptureOutput)
```

## Parameters

- `output`: An output to add to the session.

## Discussion

Discussion You can only add an output to a session using this method if canAddOutput(_:) returns true. You can invoke this method while the session is running.

## See Also

### Configuring outputs

- [outputs](avfoundation/avcapturesession/outputs.md)
- [canAddOutput(_:)](avfoundation/avcapturesession/canaddoutput(_:).md)
- [removeOutput(_:)](avfoundation/avcapturesession/removeoutput(_:).md)
