ALAssetRepresentation object encapsulates one of the representations of a given
The Assets Library framework is deprecated as of iOS 9.0. Instead, use the Photos framework instead, which in iOS 8.0 and later provides more features and better performance for working with a user’s photo library. For more information, see
In the Photos framework, the
classes provide functionality for fetching an asset’s image or video data.
A given asset in the library may have more than one representation. For example, if a camera provides RAW and JPEG versions of an image, the resulting asset will have two representations—one for the RAW file and one for the JPEG file.
Symbols Getting Image Representations Getting Image Attributes func filename ()
Returns a string representing the filename of the representation on disk.
Getting Raw Data func size ()
Returns the size in bytes of the file for the representation.
Getting Metadata func metadata ()
Returns a dictionary of dictionaries of metadata for the representation.
Getting an URL func url ()
Returns a persistent URL uniquely identifying the representation.