Instance Property

isNetworkAccessAllowed

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

Declaration

var isNetworkAccessAllowed: Bool { get set }

Discussion

If true, and the requested resource 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 the resource data. If false (the default), and the resource data is not on the local device, Photos calls the completionHandler block you provided in your request, with an NSError object indicating that the resource requires network access.

See Also

Fetching Resource Data from iCloud

var progressHandler: PHAssetResourceProgressHandler?

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

typealias PHAssetResourceProgressHandler

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