Class AVMediaSelectionGroup

    • Constructor Detail

      • AVMediaSelectionGroup

        protected AVMediaSelectionGroup​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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:
        copyWithZone in interface NSCopying
      • 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.
      • 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*.