Type Method

fetchAssetsWithLocalIdentifiers:options:

Retrieves assets with the specified local-device-specific unique identifiers.

Declaration

+ (PHFetchResult<PHAsset *> *)fetchAssetsWithLocalIdentifiers:(NSArray<NSString *> *)identifiers options:(PHFetchOptions *)options;

Parameters

identifiers

An array of NSString objects, each the localIdentifier string of an asset.

options

Options that specify a filter predicate and sort order for the fetched assets, or nil to use default options. For details, see PHFetchOptions.

Return Value

A fetch result that contains the requested PHAsset objects, or an empty fetch result if no objects match the request.

See Also

Fetching Assets

Fetching Assets

Retrieve asset metadata or request full asset content.

+ fetchAssetsInAssetCollection:options:

Retrieves assets from the specified asset collection.

+ fetchAssetsWithMediaType:options:

Retrieves assets with the specified media type.

+ fetchKeyAssetsInAssetCollection:options:

Retrieves assets marked as key assets in the specified asset collection.

+ fetchAssetsWithOptions:

Retrieves all assets matching the specified options.

+ fetchAssetsWithBurstIdentifier:options:

Retrieves assets with the specified burst photo sequence identifier.

+ fetchAssetsWithALAssetURLs:options:

Retrieves assets using URLs provided by the Assets Library framework.

Deprecated

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