Instance Property

isNetworkAccessAllowed

A Boolean value that specifies whether Photos can download the requested Live Photo data from iCloud.

Declaration

var isNetworkAccessAllowed: Bool { get set }

Discussion

If true, and the requested Live Photo data is not stored on the local device, Photos downloads that data from iCloud. To be notified of the download’s progress, use the progressHandler property to provide a block that Photos calls periodically while downloading. If false (the default), and the Live Photo data is not on the local device, the PHImageResultIsInCloudKey value in the result handler’s info dictionary indicates that the data 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 Live Photo.