Instance Property

activeInputSource

The currently active input source.

Declaration

@property(nonatomic, retain) AVCaptureDeviceInputSource *activeInputSource;

Discussion

You use this property to get or set the currently active input source.

To set the format, you must first obtain exclusive access to the receiver using lockForConfiguration:. If you do not obtain exclusive access, setActiveInputSource: throws a NSGenericException.

The set method, setActiveInputSource:, throws an NSInvalidArgumentException if you pass a format not present in the formats array.

You can observe changes to the value of this property using Key-value observing.

See Also

Configuring the Device

- lockForConfiguration:

Requests exclusive access to the device’s hardware properties.

- unlockForConfiguration

Relinquishes exclusive control over the device’s configuration.

inUseByAnotherApplication

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

suspended

Indicates whether the device is suspended.

linkedDevices

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

transportType

The transport type of the receiver.

AVCaptureDeviceInputSource

A distinct input source on a capture device.

inputSources

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