Type Method


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


class func metadataItems(from metadataItems: [AVMetadataItem], filteredBy metadataItemFilter: AVMetadataItemFilter) -> [AVMetadataItem]



An array of AVMetadataItems to be filtered.


The AVMetadataItemFilter object for filtering the metadataItems.

Return Value

An instance of NSArray containing the metadata items in metadataItems that have not been removed by metadataItemFilter.

See Also

Filtering Arrays of Metadata Items

class func metadataItems(from: [AVMetadataItem], withKey: Any?, keySpace: AVMetadataKeySpace?) -> [AVMetadataItem]

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

struct AVMetadataKeySpace

A value that defines a metadata key space.

class func metadataItems(from: [AVMetadataItem], with: Locale) -> [AVMetadataItem]

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

class func metadataItems(from: [AVMetadataItem], filteredAndSortedAccordingToPreferredLanguages: [String]) -> [AVMetadataItem]

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

struct AVMetadataIdentifier

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