Class

PHImageRequestOptions

A set of options affecting the delivery of still image representations of Photos assets you request from an image manager.

Topics

Scheduling an Image Request

var isSynchronous: Bool

A Boolean value that determines whether Photos processes the image request synchronously.

Specifying Image Request Options

var version: PHImageRequestOptionsVersion

The version of the image to be requested.

enum PHImageRequestOptionsVersion

Options for requesting an image asset with or without adjustments, used by the version property.

var deliveryMode: PHImageRequestOptionsDeliveryMode

The requested image quality and delivery priority.

enum PHImageRequestOptionsDeliveryMode

Options for delivering requested image data, used by the deliveryMode property.

var resizeMode: PHImageRequestOptionsResizeMode

A mode that specifies how to resize the requested image.

enum PHImageRequestOptionsResizeMode

Options for how to resize the requested image to fit a target size, used by the resizeMode property.

var normalizedCropRect: CGRect

A rectangle for requesting a cropped version of the original image.

Fetching Image Data from iCloud

var isNetworkAccessAllowed: Bool

A Boolean value that specifies whether Photos can download the requested image 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.

Relationships

Inherits From

See Also

Loading Asset Content

class PHImageManager

Provides methods for retrieving or generating preview thumbnails and full-size image or video data associated with Photos assets.

class PHCachingImageManager

Provides methods for retrieving or generating preview thumbnails and full-size image or video data associated with Photos assets, optimized for batch preloading large numbers of assets.

class PHVideoRequestOptions

A set of options affecting the delivery of video asset data that you request from an image manager.

class PHLivePhotoRequestOptions

A set of options affecting the delivery of Live Photo assets you request from an image manager.

class PHLivePhoto

A displayable representation of a Live Photo—a picture that includes motion and sound from the moments just before and after its capture.