Returns an array of the devices able to capture data of a given media type.
Deprecated
Use the AVCapture
class instead.
SDKs
- iOS 4.0–10.0Deprecated
- macOS 10.7–10.15Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- AVFoundation
Declaration
class func devices(for mediaType: AVMedia Type) -> [AVCapture Device]
Parameters
mediaType
A media type identifier.
For possible values, see AVFoundation Constants.
Return Value
An array containing the devices able to capture data of the type indicated by media
.