Instance Method

representation(forUTI:)

Returns an asset representation object for a given representation UTI.

Declaration

func representation(forUTI representationUTI: String!) -> ALAssetRepresentation!

Parameters

representationUTI

A UTI describing a representation for the asset.

Return Value

An an asset representation object for the representation specified by representationUTI, or nil if the asset does not support the representation.

Discussion

This method returns nil for assets from a shared photo stream that are not yet available locally. If the asset becomes available in the future, an ALAssetsLibraryChanged notification is posted.

See Also

Accessing Representations

func defaultRepresentation() -> ALAssetRepresentation!

Returns an asset representation object for the default representation.

Deprecated
func thumbnail() -> Unmanaged<CGImage>!

Returns a thumbnail representation of the asset.

Deprecated
func aspectRatioThumbnail() -> Unmanaged<CGImage>!

Returns an aspect ratio thumbnail of the asset.

Deprecated