A container for image data collected by a photo capture output.
- iOS 11.0+
When you capture photos with the
AVCapture class, your delegate object receives each resulting image and related data in the form of an
AVCapture object. This object is an immutable wrapper from which you can retrieve various results of the photo capture.
In addition to the photo image pixel buffer, an AVCapturePhoto object can also contain a preview-sized pixel buffer, capture metadata, and, on supported devices, depth data and camera calibration data. From an
AVCapture object, you can generate data appropriate for writing to a file, such as HEVC encoded image data containerized in the HEIC file format and including a preview image, depth data and other attachments.
AVCapture instance wraps a single image result. For example, if you request a bracketed capture of three images, your callback is called three times, each time delivering a single