Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVMetadataItemMBS class.
AVMetadataItemMBS.available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on Mac OS X 10.7 and newer.
AVMetadataItemMBS.metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, key as Variant, keySpace as string) as AVMetadataItemMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
array: The array of AVMetadataItem objects to be filtered.
key: The key that must be matched for a metadata item to be included in the output array. The key is compared to the keys in the metadata in the array using isEqual. If you do not want to filter by key, pass nil.
keySpace: The key space that must be matched for a metadata item to be included in the output array. The key space is compared to the key spaces in the metadata in the array using isEqualToString:. If you do not want to filter by key space, pass nil.
Returns an array of the metadata items from array that match key or keySpace.
If the value in the keySpace parameter is AVMetadataKeySpaceCommon, the value of the metadata item's commonKey property must match the value in the key parameter for the item to be returned. If the key parameter is nil, then all metadata items in the common key space are returned.
If the value in the keySpace parameter is nil or is not the constant for the common key space, the value of the metadata item's key property must match the value in the key parameter for the item to be returned. If the key parameter itself is nil, then all metadata items in the specified key space are returned.
See also:
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, locale as NSLocaleMBS) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, metadataItemFilter as AVMetadataItemFilterMBS) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, preferredLanguages() as string) as AVMetadataItemMBS()
AVMetadataItemMBS.metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, locale as NSLocaleMBS) as AVMetadataItemMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
array: The array of AVMetadataItem objects to be filtered.
locale: The locale that must be matched for a metadata item to be included in the output array.
Returns an array containing the AVMetadataItem objects from the array parameter that match the specified locale.
See also:
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, key as Variant, keySpace as string) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, metadataItemFilter as AVMetadataItemFilterMBS) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, preferredLanguages() as string) as AVMetadataItemMBS()
AVMetadataItemMBS.metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, metadataItemFilter as AVMetadataItemFilterMBS) as AVMetadataItemMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
metadataItems: An array of AVMetadataItems to be filtered.
metadataItemFilter: The AVMetadataItemFilter object for filtering the metadataItems.
Returns an instance of NSArray containing the metadata items in metadataItems that have not been removed by metadataItemFilter.
Available in OS X v10.9 and later.
See also:
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, key as Variant, keySpace as string) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, locale as NSLocaleMBS) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, preferredLanguages() as string) as AVMetadataItemMBS()
AVMetadataItemMBS.metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, preferredLanguages() as string) as AVMetadataItemMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
metadataItems: An array of AVMetadataItem objects to be filtered and sorted.
preferredLanguages: An array of strings, each of which contains a canonicalized IETF BCP 47 language identifier. The order of the identifiers in the array reflects the preferred language order, with the most preferred language being first in the array. Typically, you pass the user's preferred languages by retrieving this array from the preferredLanguages class method of NSLocale.
Returns an array containing the AVMetadataItem objects from the metadataItems parameter that match one of the specified languages.
See also:
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, key as Variant, keySpace as string) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, locale as NSLocaleMBS) as AVMetadataItemMBS()
- metadataItemsFromArray(metadataItems() as AVMetadataItemMBS, metadataItemFilter as AVMetadataItemFilterMBS) as AVMetadataItemMBS()
The items on this page are in the following plugins: MBS AVFoundation Plugin.