Class AVAssetDownloadConfiguration

  • All Implemented Interfaces:
    NSObject

    public class AVAssetDownloadConfiguration
    extends NSObject
    AVAssetDownloadConfiguration Configuration parameters for the download task. Download configuration consists of primary and auxiliary content configurations. Primary content configuration represents the primary set of renditions essential for offline playback. Auxiliary content configurations represent additional configurations to complement the primary. For example, the primary content configuration may represent stereo audio renditions and auxiliary configuration may represent complementing multichannel audio renditions. It is important to configure your download configuration object appropriately before using it to create a download task. Download task makes a copy of the configuration settings you provide and use those settings to configure the task. Once configured, the task object ignores any changes you make to the NSURLSessionConfiguration object. If you need to modify your settings, you must update the download configuration object and use it to create a new download task object. API-Since: 15.0
    • Constructor Detail

      • AVAssetDownloadConfiguration

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • artworkData

        @Nullable
        public @Nullable NSData artworkData()
        [@property] assetArtworkData NSData representing artwork data for this asset. Optional. May be displayed, for example, by the usage pane of the Settings app. Must work with +[UIImage imageWithData:].
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • auxiliaryContentConfigurations

        @NotNull
        public @NotNull NSArray<? extends AVAssetDownloadContentConfiguration> auxiliaryContentConfigurations()
        [@property] auxiliaryContentConfigurations The auxiliary content for the download. Optional. By default, auxiliaryContentConfigurations will have one or more default auxiliary content configurations. These content configurations can be augmented with additional content configurations or removed entirely if no auxiliary content is desired.
      • 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()
      • downloadConfigurationWithAssetTitle

        public static AVAssetDownloadConfiguration downloadConfigurationWithAssetTitle​(@NotNull
                                                                                       @NotNull AVURLAsset asset,
                                                                                       @NotNull
                                                                                       @NotNull java.lang.String title)
        downloadConfigurationWithAsset:title: Creates and initializes a download configuration object. This method will throw an exception if AVURLAsset has been invalidated.
        Parameters:
        asset - The asset to create the download configuration for.
        title - A human readable title for this asset, expected to be as suitable as possible for the user's preferred languages. Will show up in the usage pane of the settings app.
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • optimizesAuxiliaryContentConfigurations

        public boolean optimizesAuxiliaryContentConfigurations()
        [@property] optimizesAuxiliaryContentConfigurations Optimizes auxiliary content selection depending on the primary to minimize total number of video renditions downloaded. True by default. For example, if the primary content configuration represents stereo renditions and auxiliary content configuration represents multichannel audio renditions, auxiliary multichannel variant will be chosen so as to avoid downloading duplicate video renditions.
      • primaryContentConfiguration

        @NotNull
        public @NotNull AVAssetDownloadContentConfiguration primaryContentConfiguration()
        [@property] primaryContentConfiguration The primary content for the download.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setArtworkData

        public void setArtworkData​(@Nullable
                                   @Nullable NSData value)
        [@property] assetArtworkData NSData representing artwork data for this asset. Optional. May be displayed, for example, by the usage pane of the Settings app. Must work with +[UIImage imageWithData:].
      • setAuxiliaryContentConfigurations

        public void setAuxiliaryContentConfigurations​(@NotNull
                                                      @NotNull NSArray<? extends AVAssetDownloadContentConfiguration> value)
        [@property] auxiliaryContentConfigurations The auxiliary content for the download. Optional. By default, auxiliaryContentConfigurations will have one or more default auxiliary content configurations. These content configurations can be augmented with additional content configurations or removed entirely if no auxiliary content is desired.
      • setOptimizesAuxiliaryContentConfigurations

        public void setOptimizesAuxiliaryContentConfigurations​(boolean value)
        [@property] optimizesAuxiliaryContentConfigurations Optimizes auxiliary content selection depending on the primary to minimize total number of video renditions downloaded. True by default. For example, if the primary content configuration represents stereo renditions and auxiliary content configuration represents multichannel audio renditions, auxiliary multichannel variant will be chosen so as to avoid downloading duplicate video renditions.
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.