---
title: AVCaptureInput
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avcaptureinput
---

# AVCaptureInput

An abstract superclass for objects that provide input data to a capture session.

## Declaration

```swift
class AVCaptureInput
```

## Mentioned in

Setting up a capture session

## Overview

Overview You create concrete instances of this class, such as AVCaptureDeviceInput, to add inputs to a capture session. An input provides one or more streams of media data. For example, input devices can provide both audio and video data. The framework represents each media stream that an input provides as an AVCaptureInput.Port object. A capture makes connections between capture inputs and capture outputs using a AVCaptureConnection object. The connection defines the mapping between a set of port objects and an AVCaptureOutput.

## Topics

### Accessing ports

- [ports](avfoundation/avcaptureinput/ports.md)
- [AVCaptureInput.Port](avfoundation/avcaptureinput/port.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [AVCaptureDeviceInput](avfoundation/avcapturedeviceinput.md)
- [AVCaptureMetadataInput](avfoundation/avcapturemetadatainput.md)
- [AVCaptureScreenInput](avfoundation/avcapturescreeninput.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Capture sessions

- [Setting up a capture session](avfoundation/setting-up-a-capture-session.md)
- [Accessing the camera while multitasking on iPad](avkit/accessing-the-camera-while-multitasking-on-ipad.md)
- [AVCam: Building a camera app](avfoundation/avcam-building-a-camera-app.md)
- [Build a responsive camera app that launches quickly](avfoundation/build-a-responsive-camera-app-that-launches-quickly.md)
- [Capturing Cinematic video](avfoundation/capturing-cinematic-video.md)
- [Supporting Center Stage front camera in your iOS app](avfoundation/supporting-center-stage-front-camera-in-your-ios-app.md)
- [AVMultiCamPiP: Capturing from Multiple Cameras](avfoundation/avmulticampip-capturing-from-multiple-cameras.md)
- [AVCamBarcode: detecting barcodes and faces](avfoundation/avcambarcode-detecting-barcodes-and-faces.md)
- [AVCaptureSession](avfoundation/avcapturesession.md)
- [AVCaptureMultiCamSession](avfoundation/avcapturemulticamsession.md)
- [AVCaptureOutput](avfoundation/avcaptureoutput.md)
- [AVCaptureConnection](avfoundation/avcaptureconnection.md)
