Class

AVAssetDownloadStorageManager

A manager of policies used to automatically purge downloaded assets.

Declaration

class AVAssetDownloadStorageManager : NSObject

Overview

Fetch the shared singleton when setting a storage management policy. Set new policy using setStorageManagementPolicy(_:for:) and the location of the downloaded asset.

Topics

Setting the Storage Policy

func storageManagementPolicy(for: URL) -> AVAssetDownloadStorageManagementPolicy?

Returns the storage management policy for a downloaded asset.

Retrieving the Singleton

class func shared() -> AVAssetDownloadStorageManager

Returns a singleton instance of the shared storage manager.

Relationships

Inherits From

Conforms To

See Also

Asset Retrieval

class AVURLAsset

A concrete subclass of AVAsset that's used to initialize an asset from a local or remote URL.

class AVAssetDownloadURLSession

A URL session used to support the creation and execution of asset download tasks.

class AVAssetResourceLoader

An object that mediates resource requests from a URL asset.

class AVAssetResourceLoadingRequest

An object that encapsulates information about a resource request issued by a resource loader object.

var response: URLResponse?

The URL response for the loading request.

class AVAssetResourceRenewalRequest

An object that encapsulates information about a resource request issued by a resource loader to renew a previously issued request.

class AVAssetResourceLoadingContentInformationRequest

A query used to get essential information about a resource referenced by an asset resource loading request.

class AVAssetResourceLoadingDataRequest

An object used to request data from a resource referenced by an asset resource loading request.

class AVAssetDownloadStorageManagementPolicy

A set of properties that defines a policy to automatically purge downloaded assets.

class AVMutableAssetDownloadStorageManagementPolicy

A mutable set of properties that defines a policy to automatically purge downloaded assets.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software