Instance Method


Extracts and returns the captured photo's preview image as a CoreGraphics image object.


func previewCGImageRepresentation() -> Unmanaged<CGImage>?

Return Value

A CoreGraphics image representation of the captured photo, or nil if either the image cannot be converted or a preview image was not requested as part of the photo capture.

See Also

Packaging Data for File Output

protocol AVCapturePhotoFileDataRepresentationCustomizer

A set of delegate callbacks to be implemented by callers of fileDataRepresentation(with:).

func fileDataRepresentation() -> Data?

Generates and returns a flat data representation of the photo and its attachments.

func cgImageRepresentation() -> Unmanaged<CGImage>?

Extracts and returns the captured photo's primary image as a Core Graphics image object.