AVCaptureDeviceDescriptor
An object that identifies a capture device and is safe to pass between actors.
Declaration
class AVCaptureDeviceDescriptorMentioned in
Overview
A descriptor is a Sendable representation of a capture device. An AVCaptureDeviceDirectionCoordinator object reports descriptors on the main actor, where the capture APIs in AVFoundation shouldn’t run. Pass a descriptor to a background actor and create the AVCaptureDevice there. Read its properties on the main actor to update your interface.
You don’t create AVCaptureDeviceDescriptor objects directly. An AVCaptureDeviceDirectionMap object reports the cameras facing each direction as arrays of descriptors.