Requests the largest represented image as data bytes and EXIF orientation for the specified asset.
- iOS 13+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13+
The asset for which to load image data.
Options specifying how Photos should handle the request, format the requested image, and notify your app of progress or errors.
PHImageis requested and the asset has adjustments, the largest rendered image data is returned. In all other cases, the original image data is returned.
Request Options Version .current
For further details, see
A block called, exactly once, when image loading is complete, providing the requested image or information about the status of the request.
The block takes the following parameters:
The requested image.
The uniform type identifier for the image.
A dictionary providing information about the status of the request. See Image Result Info Keys for possible keys and values.
A numeric identifier for the request. If you need to cancel the request before it completes, pass this identifier to the
When you call this method, Photos loads the largest available representation of the image asset, then calls your
result block to provide the requested data. Depending on the options you specify and the current state of the asset, Photos may download asset data from the network.
By default, this method executes asynchronously. If you call it from a background thread, you may change the
is property of the
options parameter to
true to block the calling thread until either the requested image is ready or an error occurs, at which time Photos calls your result handler. This method ignores the
delivery option—Photos calls your result handler block exactly once.
version option is set to
PHImage, Photos provides rendered image data, including the results of any edits that have been made to the asset content. Otherwise, Photos provides the originally captured image data for the asset.