Instance Property

isNetworkAccessAllowed

A Boolean value that specifies whether Photos can download the requested image from iCloud.

Declaration

var isNetworkAccessAllowed: Bool { get set }

Discussion

If true, and the requested image is not stored on the local device, Photos downloads the image from iCloud. To be notified of the download’s progress, use the progressHandler property to provide a block that Photos calls periodically while downloading the image. If false (the default), and the image is not on the local device, the PHImageResultIsInCloudKey value in the result handler’s info dictionary indicates that the image is not available unless you enable network access.

See Also

Fetching Image Data from iCloud

var progressHandler: PHAssetImageProgressHandler?

A block that Photos calls periodically while downloading the image.

typealias PHAssetImageProgressHandler

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