A distinct input source on a capture device.


class InputSource : NSObject


An AVCaptureDevice object may optionally present an array of input sources, representing distinct mutually exclusive inputs to the device. For example, an audio capture device might have ADAT optical and analog input sources; a video capture device might have an HDMI input source, or a component input source.


Accessing Properties

var inputSourceID: String

The input source ID.

var localizedName: String

A localized, human-readable name for the input source.


Inherits From

Conforms To

See Also

Configuring the Device

func lockForConfiguration()

Requests exclusive access to the device’s hardware properties.

func unlockForConfiguration()

Relinquishes exclusive control over the device’s configuration.

var isInUseByAnotherApplication: Bool

Indicates whether the device is being used exclusively by another application.

var isSuspended: Bool

Indicates whether the device is suspended.

var linkedDevices: [AVCaptureDevice]

An array of AVCaptureDevice objects representing the devices physically linked to the receiver.

var transportType: Int32

The transport type of the receiver.

var inputSources: [AVCaptureDevice.InputSource]

An array of AVCaptureDevice.InputSource objects representing the input sources supported by the device.

var activeInputSource: AVCaptureDevice.InputSource?

The currently active input source.