Contents

devices(for:)

Returns devices capable of capturing media of the specified type.

Declaration

class func devices(for mediaType: AVMediaType) -> [AVCaptureDevice]

Parameters

  • mediaType:

    A media type for the device.

Return Value

An array of devices, or an empty array of none exist.

See Also

Finding and monitoring devices