Type Method

metadataItemsFromArray:filteredByIdentifier:

Filters an array of metadata items according to the supplied identifier.

Declaration

+ (NSArray<AVMetadataItem *> *)metadataItemsFromArray:(NSArray<AVMetadataItem *> *)metadataItems filteredByIdentifier:(AVMetadataIdentifier)identifier;

Parameters

metadataItems

An array of metadata items.

identifier

The identifier that must be matched for a metadata item to be copied to the output array. Items are considered a match not only when their identifiers are equal to the specified identifier, but also when their identifiers conform to the specified identifier.

Return Value

An array containing the metadata items that match the specified identifier.

See Also

Filtering Arrays of Metadata Items

+ metadataItemsFromArray:withKey:keySpace:

Provides an array of metadata items that match a specified key or key space.

AVMetadataKeySpace

A value that defines a metadata key space.

+ metadataItemsFromArray:withLocale:

Provides an array of metadata items that match a specified locale.

+ metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:

Provides the subset of metadata items whose locales match one of the specified language identifiers.

+ metadataItemsFromArray:filteredByMetadataItemFilter:

Filters an array of metadata items using the metadata item filter.

AVMetadataIdentifier

A value that defines the metadata identifiers for different file formats.