Mac Developer Library

Developer

AV Foundation Framework Reference AVCaptureDeviceInputSource Class Reference

Options
Deployment Target:

On This Page
Language:

AVCaptureDeviceInputSource

An AVCaptureDeviceInputSource object represents a distinct input source on an AVCaptureDevice object.

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.

  • The input source ID. (read-only)

    Declaration

    Swift

    var inputSourceID: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *inputSourceID

    Discussion

    The ID is unique among the input sources exposed by a given AVCaptureDevice object.

    Availability

    Available in OS X v10.7 and later.

  • A localized, human-readable, name for the input source. (read-only)

    Declaration

    Swift

    var localizedName: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *localizedName

    Discussion

    You can use this property to display the name of the capture device input source in a user interface.

    Availability

    Available in OS X v10.7 and later.