Package apple.avfoundation
Class AVMetadataItem
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVMetadataItem
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSMutableCopying,NSObject
- Direct Known Subclasses:
AVMutableMetadataItem
public class AVMetadataItem extends NSObject implements AVAsynchronousKeyValueLoading, NSCopying, NSMutableCopying
API-Since: 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVMetadataItem.Block_metadataItemWithPropertiesOfMetadataItemValueLoadingHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.avfoundation.protocol.AVAsynchronousKeyValueLoading
AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVMetadataItem(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVMetadataItemalloc()static AVMetadataItemallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable java.lang.StringcommonKey()indicates the common key of the metadata item@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@Nullable java.lang.StringdataType()indicates the data type of the metadata item's value.@Nullable NSDatadataValue()provides the raw bytes of the value of the metadata item@Nullable NSDatedateValue()provides the value of the metadata item as an NSDate.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()CMTimeduration()indicates the duration of the metadata item API-Since: 4.2@Nullable java.lang.StringextendedLanguageTag()indicates the IETF BCP 47 (RFC 4646) language identifier of the metadata item; may be nil if no language tag information is available API-Since: 8.0@Nullable NSDictionary<java.lang.String,?>extraAttributes()provides a dictionary of the additional attributesstatic longhash_static()@Nullable java.lang.Stringidentifier()Indicates the identifier of the metadata item.static @Nullable java.lang.StringidentifierForKeyKeySpace(@NotNull java.lang.Object key, @NotNull java.lang.String keySpace)identifierForKey:keySpace: Provides the metadata identifier that's equivalent to a key and keySpace.AVMetadataIteminit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)@Nullable java.lang.Objectkey()indicates the key of the metadata itemstatic @Nullable java.lang.ObjectkeyForIdentifier(@NotNull java.lang.String identifier)provides the metadata key indicated by the identifier API-Since: 8.0static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable java.lang.StringkeySpace()indicates the keyspace of the metadata item's key; this will typically be the default keyspace for the metadata container in which the metadata item is storedstatic @Nullable java.lang.StringkeySpaceForIdentifier(@NotNull java.lang.String identifier)provides the metadata keySpace indicated by the identifier API-Since: 8.0voidloadValuesAsynchronouslyForKeysCompletionHandler(@NotNull NSArray<java.lang.String> keys, AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler handler)loadValuesAsynchronouslyForKeys:completionHandler: Directs the target to load the values of any of the specified keys that are not already loaded.@Nullable NSLocalelocale()indicates the locale of the metadata item; may be nil if no locale information is available for the metadata itemstatic @NotNull NSArray<? extends AVMetadataItem>metadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(@NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull NSArray<java.lang.String> preferredLanguages)metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages: Filters an array of AVMetadataItems according to whether their locales match any language identifier in the specified array of preferred languages.static @NotNull NSArray<? extends AVMetadataItem>metadataItemsFromArrayFilteredByIdentifier(@NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull java.lang.String identifier)metadataItemsFromArray:filteredByIdentifier: Filters an array of AVMetadataItems according to identifier.static @NotNull NSArray<? extends AVMetadataItem>metadataItemsFromArrayFilteredByMetadataItemFilter(@NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull AVMetadataItemFilter metadataItemFilter)metadataItemsFromArray:filteredByMetadataItemFilter: Filters an array of AVMetadataItems using the supplied AVMetadataItemFilter.static @NotNull NSArray<? extends AVMetadataItem>metadataItemsFromArrayWithKeyKeySpace(@NotNull NSArray<? extends AVMetadataItem> metadataItems, @Nullable java.lang.Object key, @Nullable java.lang.String keySpace)metadataItemsFromArray:withKey:keySpace: Instead, use metadataItemsFromArray:filteredByIdentifier:.static @NotNull NSArray<? extends AVMetadataItem>metadataItemsFromArrayWithLocale(@NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull NSLocale locale)metadataItemsFromArray:withLocale: Instead, use metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:.static @NotNull AVMetadataItemmetadataItemWithPropertiesOfMetadataItemValueLoadingHandler(@NotNull AVMetadataItem metadataItem, @NotNull AVMetadataItem.Block_metadataItemWithPropertiesOfMetadataItemValueLoadingHandler handler)metadataItemWithPropertiesOfMetadataItem:valueLoadingHandler: Creates an instance of AVMutableMetadataItem with a value that you do not wish to load unless required, e.g.@NotNull java.lang.ObjectmutableCopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static AVMetadataItemnew_objc()@Nullable NSNumbernumberValue()provides the value of the metadata item as an NSNumber.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)@Nullable NSDatestartDate()indicates the start date of the timed metadata; nil if no date is indicated API-Since: 9.0longstatusOfValueForKeyError(@NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)statusOfValueForKey: Reports whether the value for a key is immediately available without blocking.@Nullable java.lang.StringstringValue()provides the value of the metadata item as a string; will be nil if the value cannot be represented as a stringstatic org.moe.natj.objc.Classsuperclass_static()CMTimetime()indicates the timestamp of the metadata item.static booleanuseStoredAccessor()Deprecated.@Nullable java.lang.Objectvalue()provides the value of the metadata itemstatic longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVMetadataItem alloc()
-
allocWithZone
public static AVMetadataItem allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
identifierForKeyKeySpace
@Nullable public static @Nullable java.lang.String identifierForKeyKeySpace(@NotNull @NotNull java.lang.Object key, @NotNull @NotNull java.lang.String keySpace)identifierForKey:keySpace: Provides the metadata identifier that's equivalent to a key and keySpace. Metadata keys that are not instances of NSString, NSNumber, or NSData cannot be converted to metadata identifiers; they also cannot be written to media resources via AVAssetExportSession or AVAssetWriter. Metadata item keySpaces must be a string of one to four printable ASCII characters. For custom identifiers, the keySpace AVMetadataKeySpaceQuickTimeMetadata is recommended. This keySpace defines its key values to be expressed as reverse-DNS strings, which allows third parties to define their own keys in a well established way that avoids collisions. API-Since: 8.0- Parameters:
key- The metadata key.keySpace- The metadata keySpace.- Returns:
- A metadata identifier equivalent to the given key and keySpace, or nil if no identifier can be constructed from the given key and keySpace.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyForIdentifier
@Nullable public static @Nullable java.lang.Object keyForIdentifier(@NotNull @NotNull java.lang.String identifier)provides the metadata key indicated by the identifier API-Since: 8.0
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
keySpaceForIdentifier
@Nullable public static @Nullable java.lang.String keySpaceForIdentifier(@NotNull @NotNull java.lang.String identifier)provides the metadata keySpace indicated by the identifier API-Since: 8.0
-
metadataItemWithPropertiesOfMetadataItemValueLoadingHandler
@NotNull public static @NotNull AVMetadataItem metadataItemWithPropertiesOfMetadataItemValueLoadingHandler(@NotNull @NotNull AVMetadataItem metadataItem, @NotNull @NotNull AVMetadataItem.Block_metadataItemWithPropertiesOfMetadataItemValueLoadingHandler handler)
metadataItemWithPropertiesOfMetadataItem:valueLoadingHandler: Creates an instance of AVMutableMetadataItem with a value that you do not wish to load unless required, e.g. a large image value that needn't be loaded into memory until another module wants to display it. This method is intended for the creation of metadata items for optional display purposes, when there is no immediate need to load specific metadata values. For example, see the interface for navigation markers as consumed by AVPlayerViewController. It's not intended for the creation of metadata items with values that are required immediately, such as metadata items that are provided for impending serialization operations (e.g. via -[AVAssetExportSession setMetadata:] and other similar methods defined on AVAssetWriter and AVAssetWriterInput). When -loadValuesAsynchronouslyForKeys:completionHandler: is invoked on an AVMetadataItem created via +metadataItemWithPropertiesOfMetadataItem:valueLoadingHandler: and @"value" is among the keys for which loading is requested, the block you provide as the value loading handler will be executed on an arbitrary dispatch queue, off the main thread. The handler can perform I/O and other necessary operations to obtain the value. If loading of the value succeeds, provide the value by invoking -[AVMetadataItemValueRequest respondWithValue:]. If loading of the value fails, provide an instance of NSError that describes the failure by invoking -[AVMetadataItemValueRequest respondWithError:]. API-Since: 9.0- Parameters:
metadataItem- An instance of AVMetadataItem with the identifier, extendedLanguageTag, and other property values that you want the newly created instance of AVMetadataItem to share. The value of metadataItem is ignored.handler- A block that loads the value of the metadata item.- Returns:
- An instance of AVMetadataItem.
-
metadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages
@NotNull public static @NotNull NSArray<? extends AVMetadataItem> metadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(@NotNull @NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull @NotNull NSArray<java.lang.String> preferredLanguages)
metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages: Filters an array of AVMetadataItems according to whether their locales match any language identifier in the specified array of preferred languages. The returned array is sorted according to the order of preference of the language each matches.- Parameters:
metadataItems- An array of AVMetadataItems to be filtered and sorted.preferredLanguages- An array of language identifiers in order of preference, each of which is an IETF BCP 47 (RFC 4646) language identifier. Use +[NSLocale preferredLanguages] to obtain the user's list of preferred languages.- Returns:
- An instance of NSArray containing metadata items of the specified NSArray that match a preferred language, sorted according to the order of preference of the language each matches. API-Since: 6.0
-
metadataItemsFromArrayFilteredByIdentifier
@NotNull public static @NotNull NSArray<? extends AVMetadataItem> metadataItemsFromArrayFilteredByIdentifier(@NotNull @NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull @NotNull java.lang.String identifier)
metadataItemsFromArray:filteredByIdentifier: Filters an array of AVMetadataItems according to identifier.- Parameters:
metadataItems- An array of AVMetadataItems to be filtered by identifier.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, and also when their identifiers conform to the specified identifier.- Returns:
- An instance of NSArray containing the metadata items of the target NSArray that match the specified identifier. API-Since: 8.0
-
metadataItemsFromArrayFilteredByMetadataItemFilter
@NotNull public static @NotNull NSArray<? extends AVMetadataItem> metadataItemsFromArrayFilteredByMetadataItemFilter(@NotNull @NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull @NotNull AVMetadataItemFilter metadataItemFilter)
metadataItemsFromArray:filteredByMetadataItemFilter: Filters an array of AVMetadataItems using the supplied AVMetadataItemFilter.- Parameters:
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 of the target NSArray that have not been removed by metadataItemFilter. API-Since: 7.0
-
metadataItemsFromArrayWithKeyKeySpace
@NotNull public static @NotNull NSArray<? extends AVMetadataItem> metadataItemsFromArrayWithKeyKeySpace(@NotNull @NotNull NSArray<? extends AVMetadataItem> metadataItems, @Nullable @Nullable java.lang.Object key, @Nullable @Nullable java.lang.String keySpace)
metadataItemsFromArray:withKey:keySpace: Instead, use metadataItemsFromArray:filteredByIdentifier:.
-
metadataItemsFromArrayWithLocale
@NotNull public static @NotNull NSArray<? extends AVMetadataItem> metadataItemsFromArrayWithLocale(@NotNull @NotNull NSArray<? extends AVMetadataItem> metadataItems, @NotNull @NotNull NSLocale locale)
metadataItemsFromArray:withLocale: Instead, use metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:.
-
new_objc
public static AVMetadataItem new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
commonKey
@Nullable public @Nullable java.lang.String commonKey()
indicates the common key of the metadata item
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
dataType
@Nullable public @Nullable java.lang.String dataType()
indicates the data type of the metadata item's value. Publicly defined data types are declared inAPI-Since: 8.0
-
dataValue
@Nullable public @Nullable NSData dataValue()
provides the raw bytes of the value of the metadata item
-
dateValue
@Nullable public @Nullable NSDate dateValue()
provides the value of the metadata item as an NSDate. If the metadata item's value can't be coerced to a date, @"dateValue" will be nil.
-
duration
public CMTime duration()
indicates the duration of the metadata item API-Since: 4.2
-
extendedLanguageTag
@Nullable public @Nullable java.lang.String extendedLanguageTag()
indicates the IETF BCP 47 (RFC 4646) language identifier of the metadata item; may be nil if no language tag information is available API-Since: 8.0
-
extraAttributes
@Nullable public @Nullable NSDictionary<java.lang.String,?> extraAttributes()
provides a dictionary of the additional attributes
-
identifier
@Nullable public @Nullable java.lang.String identifier()
Indicates the identifier of the metadata item. Publicly defined identifiers are declared in AVMetadataIdentifiers.h. API-Since: 8.0
-
init
public AVMetadataItem init()
-
key
@Nullable public @Nullable java.lang.Object key()
indicates the key of the metadata item
-
keySpace
@Nullable public @Nullable java.lang.String keySpace()
indicates the keyspace of the metadata item's key; this will typically be the default keyspace for the metadata container in which the metadata item is stored
-
loadValuesAsynchronouslyForKeysCompletionHandler
public void loadValuesAsynchronouslyForKeysCompletionHandler(@NotNull @NotNull NSArray<java.lang.String> keys, @Nullable AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler handler)Description copied from interface:AVAsynchronousKeyValueLoadingloadValuesAsynchronouslyForKeys:completionHandler: Directs the target to load the values of any of the specified keys that are not already loaded.- Specified by:
loadValuesAsynchronouslyForKeysCompletionHandlerin interfaceAVAsynchronousKeyValueLoading- Parameters:
keys- An instance of NSArray, containing NSStrings for the specified keys.handler- The block to be invoked when loading succeeds, fails, or is cancelled.
-
locale
@Nullable public @Nullable NSLocale locale()
indicates the locale of the metadata item; may be nil if no locale information is available for the metadata item
-
mutableCopyWithZone
@NotNull public @NotNull java.lang.Object mutableCopyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
numberValue
@Nullable public @Nullable NSNumber numberValue()
provides the value of the metadata item as an NSNumber. If the metadata item's value can't be coerced to a number, @"numberValue" will be nil.
-
startDate
@Nullable public @Nullable NSDate startDate()
indicates the start date of the timed metadata; nil if no date is indicated API-Since: 9.0
-
statusOfValueForKeyError
public long statusOfValueForKeyError(@NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)Description copied from interface:AVAsynchronousKeyValueLoadingstatusOfValueForKey: Reports whether the value for a key is immediately available without blocking. Clients can use -statusOfValueForKey: to determine the availability of the value of any key of interest. However, this method alone does not prompt the receiver to load the value of a key that's not yet available. To request values for keys that may not already be loaded, without blocking, use -loadValuesAsynchronouslyForKeys:completionHandler:, await invocation of the completion handler, and test the availability of each key via -statusOfValueForKey: before invoking its getter. Even if access to values of some keys may be readily available, as can occur with receivers initialized with URLs for resources on local volumes, extensive I/O or parsing may be needed for these same receivers to provide values for other keys. A duration for a local MP3 file, for example, may be expensive to obtain, even if the values for other AVAsset properties may be trivial to obtain. Blocking that may occur when calling the getter for any key should therefore be avoided in the general case by loading values for all keys of interest via -loadValuesAsynchronouslyForKeys:completionHandler: and testing the availability of the requested values before fetching them by calling getters. The sole exception to this general rule is in usage on macOS on the desktop, where it may be acceptable to block in cases in which the client is preparing objects for use on background threads or in operation queues. On platforms other than macOS, values should always be loaded asynchronously prior to calling getters for the values, in any usage scenario.- Specified by:
statusOfValueForKeyErrorin interfaceAVAsynchronousKeyValueLoading- Parameters:
key- An instance of NSString containing the specified key.outError- If the status of the value for the key is AVKeyValueStatusFailed, *outError is set to a non-nil NSError that describes the failure that occurred.- Returns:
- The value's current loading status.
-
stringValue
@Nullable public @Nullable java.lang.String stringValue()
provides the value of the metadata item as a string; will be nil if the value cannot be represented as a string
-
time
public CMTime time()
indicates the timestamp of the metadata item.
-
value
@Nullable public @Nullable java.lang.Object value()
provides the value of the metadata item
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-