A query for finding and monitoring available capture devices.
- iOS 10.0+
- macOS 10.15+Beta
- UIKit for Mac 13.0+Beta
Use this class to find all available capture devices matching a specific device type (such as microphone or wide-angle camera), supported media types for capture (such as audio, video, or both), and position (front- or back-facing).
After creating a device discovery session, you can inspect its
devices array to choose a device for capture.