Type Method


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


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



The array of AVMetadataItem objects to be filtered.


The locale that must be matched for a metadata item to be included in the output array.

Return Value

An array containing the AVMetadataItem objects from the array parameter that match the specified locale.

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], 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.

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