Initiates a still image capture and returns immediately.
- iOS 4.0–10.0Deprecated
- macOS 10.7–10.15Deprecated
- UIKit for Mac 13.0–13.0Deprecated
The connection from which to capture the image.
A block to invoke after the image has been captured. The block parameters are as follows:
The data that was captured.
The buffer attachments may contain metadata appropriate to the image data format. For example, a buffer containing JPEG data may carry a
kas an attachment. See ImageIO/CGImageProperties.h for a list of keys and value types.
CGImage Property Exif Dictionary
If the request could not be completed, an
NSErrorobject that describes the problem; otherwise
This method returns immediately after it is invoked, later calling the provided completion handler block when image data is ready. If the request could not be completed, the error parameter will contain an
NSError object describing the failure.
You should not assume that the completion handler will be called on a specific thread.