Package apple.avfoundation
Class AVMediaSelectionGroup
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVMediaSelectionGroup
-
- Direct Known Subclasses:
AVAssetWriterInputGroup
public class AVMediaSelectionGroup extends NSObject implements NSCopying
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVMediaSelectionGroup(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVMediaSelectionGroupalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsEmptySelection()[@property] allowsEmptySelection Indicates whether it's possible to present none of the options in the group when an associated AVPlayerItem is played.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()AVMediaSelectionOptiondefaultOption()[@property] defaultOption Indicates the default option in the group, i.e. the option that's intended for use in the absence of a specific end-user selection or preference.static java.lang.Stringdescription_static()static longhash_static()AVMediaSelectionGroupinit()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)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)MPNowPlayingInfoLanguageOptionGroupmakeNowPlayingInfoLanguageOptionGroup()Will create a language option group from the AVMediaSelectionGroup Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing Audible or Legible selection options will be ignored.static NSArray<? extends AVMediaSelectionOption>mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> preferredLanguages)mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages: Filters an array of AVMediaSelectionOptions according to whether their locales match any language identifier in the specified array of preferred languages.static NSArray<? extends AVMediaSelectionOption>mediaSelectionOptionsFromArrayWithLocale(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSLocale locale)mediaSelectionOptionsFromArray:withLocale: Filters an array of AVMediaSelectionOptions according to locale.static NSArray<? extends AVMediaSelectionOption>mediaSelectionOptionsFromArrayWithMediaCharacteristics(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> mediaCharacteristics)mediaSelectionOptionsFromArray:withMediaCharacteristics: Filters an array of AVMediaSelectionOptions according to one or more media characteristics.static NSArray<? extends AVMediaSelectionOption>mediaSelectionOptionsFromArrayWithoutMediaCharacteristics(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> mediaCharacteristics)mediaSelectionOptionsFromArray:withoutMediaCharacteristics: Filters an array of AVMediaSelectionOptions according to whether they lack one or more media characteristics.AVMediaSelectionOptionmediaSelectionOptionWithPropertyList(java.lang.Object plist)mediaSelectionOptionWithPropertyList: Returns the instance of AVMediaSelectionOption with properties that match the specified property list.static java.lang.Objectnew_objc()NSArray<? extends AVMediaSelectionOption>options()[@property] options A collection of mutually exclusive media selection options.static NSArray<? extends AVMediaSelectionOption>playableMediaSelectionOptionsFromArray(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions)playableMediaSelectionOptionsFromArray: Filters an array of AVMediaSelectionOptions according to whether they are playable.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVMediaSelectionGroup alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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()
-
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)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages
public static NSArray<? extends AVMediaSelectionOption> mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> preferredLanguages)
mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages: Filters an array of AVMediaSelectionOptions 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:
mediaSelectionOptions- An array of AVMediaSelectionOptions 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 media selection options of the specified NSArray that match a preferred language, sorted according to the order of preference of the language each matches.
-
mediaSelectionOptionsFromArrayWithLocale
public static NSArray<? extends AVMediaSelectionOption> mediaSelectionOptionsFromArrayWithLocale(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSLocale locale)
mediaSelectionOptionsFromArray:withLocale: Filters an array of AVMediaSelectionOptions according to locale.- Parameters:
mediaSelectionOptions- An array of AVMediaSelectionOption to be filtered by locale.locale- The NSLocale that must be matched for a media selection option to be copied to the output array.- Returns:
- An instance of NSArray containing the media selection options of the specified NSArray that match the specified locale.
-
mediaSelectionOptionsFromArrayWithMediaCharacteristics
public static NSArray<? extends AVMediaSelectionOption> mediaSelectionOptionsFromArrayWithMediaCharacteristics(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> mediaCharacteristics)
mediaSelectionOptionsFromArray:withMediaCharacteristics: Filters an array of AVMediaSelectionOptions according to one or more media characteristics.- Parameters:
mediaSelectionOptions- An array of AVMediaSelectionOptions to be filtered by media characteristic.mediaCharacteristics- The media characteristics that must be matched for a media selection option to be copied to the output array.- Returns:
- An instance of NSArray containing the media selection options of the specified NSArray that match the specified media characteristics.
-
mediaSelectionOptionsFromArrayWithoutMediaCharacteristics
public static NSArray<? extends AVMediaSelectionOption> mediaSelectionOptionsFromArrayWithoutMediaCharacteristics(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions, NSArray<java.lang.String> mediaCharacteristics)
mediaSelectionOptionsFromArray:withoutMediaCharacteristics: Filters an array of AVMediaSelectionOptions according to whether they lack one or more media characteristics.- Parameters:
mediaSelectionOptions- An array of AVMediaSelectionOptions to be filtered by media characteristic.mediaCharacteristics- The media characteristics that must not be present for a media selection option to be copied to the output array.- Returns:
- An instance of NSArray containing the media selection options of the specified NSArray that lack the specified media characteristics.
-
new_objc
public static java.lang.Object new_objc()
-
playableMediaSelectionOptionsFromArray
public static NSArray<? extends AVMediaSelectionOption> playableMediaSelectionOptionsFromArray(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions)
playableMediaSelectionOptionsFromArray: Filters an array of AVMediaSelectionOptions according to whether they are playable.- Parameters:
mediaSelectionOptions- An array of AVMediaSelectionOption to be filtered according to whether they are playable.- Returns:
- An instance of NSArray containing the media selection options of the specified NSArray that are playable.
-
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()
-
allowsEmptySelection
public boolean allowsEmptySelection()
[@property] allowsEmptySelection Indicates whether it's possible to present none of the options in the group when an associated AVPlayerItem is played. If allowsEmptySelection is YES, all of the available media options in the group can be deselected by passing nil as the specified AVMediaSelectionOption to -[AVPlayerItem selectMediaOption:inMediaSelectionGroup:].
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
defaultOption
public AVMediaSelectionOption defaultOption()
[@property] defaultOption Indicates the default option in the group, i.e. the option that's intended for use in the absence of a specific end-user selection or preference. Can be nil, indicating that without a specific end-user selection or preference, no option in the group is intended to be selected.
-
init
public AVMediaSelectionGroup init()
-
makeNowPlayingInfoLanguageOptionGroup
public MPNowPlayingInfoLanguageOptionGroup makeNowPlayingInfoLanguageOptionGroup()
Will create a language option group from the AVMediaSelectionGroup Any AVMediaSelectionOptions in the AVMediaSelectionGroup not representing Audible or Legible selection options will be ignored.
-
mediaSelectionOptionWithPropertyList
public AVMediaSelectionOption mediaSelectionOptionWithPropertyList(java.lang.Object plist)
mediaSelectionOptionWithPropertyList: Returns the instance of AVMediaSelectionOption with properties that match the specified property list.- Parameters:
plist- A property list previously obtained from an option in the group via -[AVMediaSelectionOption propertyList].- Returns:
- If the specified properties match those of an option in the group, an instance of AVMediaSelectionOption. Otherwise nil.
-
options
public NSArray<? extends AVMediaSelectionOption> options()
[@property] options A collection of mutually exclusive media selection options. An NSArray of AVMediaSelectionOption*.
-
-