Contents

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 ALAssetsLibraryChangedNotification notification is posted.

See Also

Accessing Representations