Instance Property

progressHandler

A block that Photos calls periodically while downloading the asset resource data.

Declaration

var progressHandler: PHAssetResourceProgressHandler? { get set }

Discussion

If you request an asset resource whose data is not on the local device, and you have enabled downloading with the isNetworkAccessAllowed property, Photos calls your block periodically to report progress.

See Also

Fetching Resource Data from iCloud

var isNetworkAccessAllowed: Bool

A Boolean value that specifies whether Photos can download the requested asset resource data from iCloud.

typealias PHAssetResourceProgressHandler

The signature for a block that Photos calls while downloading asset resource data from iCloud. Used by the progressHandler property.