A block Photos calls periodically while downloading the asset.
- iOS 8+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10.0+
If you request an asset whose data is not on the local device, and have enabled downloading with the
network property, Photos calls your block periodically to report progress and allow canceling the download.
The block takes the following parameters:
A floating-point value indicating the progress of the download. A value of
0indicates the download has just started, and a value of
1indicates the download is complete.
A pointer to a Boolean value. Set
YESinside the block to cancel the download.