Class

PHAssetResourceCreationOptions

A set of options affecting the creation of a new Photos asset from underlying resources.

Declaration

class PHAssetResourceCreationOptions : NSObject

Overview

You use this class when creating an asset for addition to the Photos library with a PHAssetCreationRequest object.

Topics

Describing a New Asset Resource

var originalFilename: String?

The filename for the asset resource being created.

var uniformTypeIdentifier: String?

The uniform type identifier for the resource.

Managing Resource Files

var shouldMoveFile: Bool

A Boolean value that determines whether Photos moves or duplicates files when creating an asset resource.

Relationships

Inherits From

See Also

Asset Resource Management

class PHAssetResource

An underlying data resource associated with a photo, video, or Live Photo asset in the Photos library.

class PHAssetCreationRequest

A request to create a new Photos asset from underlying data resources, for use in a photo library change block.

class PHAssetResourceManager

A resource manager for the data storage underlying a Photos asset.

class PHAssetResourceRequestOptions

A set of options affecting the delivery of underlying asset data that you request from the asset resource manager.