CaptureResult
Represents capture completion result provided via CaptureNavigationControllerDelegate
method.
-
Returns captured images as a data in JPEG format. If no images were captured, an empty array will be returned. The provided data can be displayed as an image using
UIImage(data: Data)
, or stored in a file usingData.write(to: URL, options: Data.WritingOptions)
. You can also useData.metadata
andData.getLocation()
to retrieve an EXIF data available in the image. -
Returns
true
if the result contains no images (e.g. user cancelled the capture)