consumeImageData(_:forTag:)
Gets the image data for the given tag that was initiated by an asynchronous fetch.
Declaration
func consumeImageData(_ data: Data!, forTag tag: Int)Parameters
- data:
A pointer to a data object that will be set to an
NSImage/QuickTime compatible format, ornilif no image could be found.You can use this image data with the
initWithData:method of theNSImageclass. - tag:
The tag returned from a previous call to the
ABPersonBeginloadingimagedata(for:) method.
Discussion
In the case of a multithreaded application, this method is always called on the main thread.