Class AVAssetDownloadURLSession

  • All Implemented Interfaces:
    NSObject

    public class AVAssetDownloadURLSession
    extends NSURLSession
    AVAssetDownloadURLSession A subclass of NSURLSession to support AVAssetDownloadTask. API-Since: 9.0
    • Constructor Detail

      • AVAssetDownloadURLSession

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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)
      • resolveClassMethod

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

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

        @NotNull
        public static @NotNull AVAssetDownloadURLSession sessionWithConfigurationAssetDownloadDelegateDelegateQueue​(@NotNull
                                                                                                                    @NotNull NSURLSessionConfiguration configuration,
                                                                                                                    @Nullable
                                                                                                                    @Nullable AVAssetDownloadDelegate delegate,
                                                                                                                    @Nullable
                                                                                                                    @Nullable NSOperationQueue delegateQueue)
        sessionWithConfiguration:assetDownloadDelegate:delegateQueue: Creates and initializes an AVAssetDownloadURLSession for use with AVAssetDownloadTasks.
        Parameters:
        configuration - The configuration for this URLSession. Must be a background configuration.
        delegate - The delegate object to handle asset download progress updates and other session related events.
        delegateQueue - The queue to receive delegate callbacks on. If nil, a serial queue will be provided.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sharedSession

        @NotNull
        public static @NotNull NSURLSession sharedSession()
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions

        @Nullable
        public @Nullable AVAssetDownloadTask assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions​(@NotNull
                                                                                                            @NotNull AVURLAsset URLAsset,
                                                                                                            @NotNull
                                                                                                            @NotNull java.lang.String title,
                                                                                                            @Nullable
                                                                                                            @Nullable NSData artworkData,
                                                                                                            @Nullable
                                                                                                            @Nullable NSDictionary<java.lang.String,​?> options)
        assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options: Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession. This method may return nil if the URLSession has been invalidated.
        Parameters:
        URLAsset - The AVURLAsset to download locally.
        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.
        artworkData - NSData representing artwork data for this asset. Optional. Will show up in the usage pane of the settings app. Must work with +[UIImage imageWithData:].
        options - See AVAssetDownloadTask*Key above. Configures non-default behavior for the download task. Using this parameter is required for downloading non-default media selections for HLS assets. API-Since: 10.0
      • assetDownloadTaskWithURLAssetDestinationURLOptions

        @Nullable
        @Deprecated
        public @Nullable AVAssetDownloadTask assetDownloadTaskWithURLAssetDestinationURLOptions​(@NotNull
                                                                                                @NotNull AVURLAsset URLAsset,
                                                                                                @NotNull
                                                                                                @NotNull NSURL destinationURL,
                                                                                                @Nullable
                                                                                                @Nullable NSDictionary<java.lang.String,​?> options)
        Deprecated.
        assetDownloadTaskWithURLAsset:destinationURL:options: Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession. This method may return nil if the URLSession has been invalidated.
        Parameters:
        URLAsset - The AVURLAsset to download locally.
        destinationURL - The local URL to download the asset to. This must be a file URL.
        options - See AVAssetDownloadTask*Key above. Configures non-default behavior for the download task. Using this parameter is required for downloading non-default media selections for HLS assets. API-Since: 9.0 Deprecated-Since: 10.0 Deprecated-Message: Use assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options: instead
      • init

        public AVAssetDownloadURLSession init()
        Description copied from class: NSURLSession
        API-Since: 7.0 Deprecated-Since: 13.0 Deprecated-Message: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances
        Overrides:
        init in class NSURLSession
      • aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions

        @Nullable
        public @Nullable AVAggregateAssetDownloadTask aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions​(@NotNull
                                                                                                                                             @NotNull AVURLAsset URLAsset,
                                                                                                                                             @NotNull
                                                                                                                                             @NotNull NSArray<? extends AVMediaSelection> mediaSelections,
                                                                                                                                             @NotNull
                                                                                                                                             @NotNull java.lang.String title,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable NSData artworkData,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable NSDictionary<java.lang.String,​?> options)
        aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options: Creates and initializes an AVAggregateAssetDownloadTask to download multiple AVMediaSelections on an AVURLAsset. This method may return nil if the URLSession has been invalidated. The value of AVAssetDownloadTaskMediaSelectionKey will be ignored.
        Parameters:
        URLAsset - The AVURLAsset to download locally.
        mediaSelections - A list of AVMediaSelections. Each AVMediaSelection will correspond to a childAssetDownloadTask. Use -[AVAsset allMediaSelections] to download all AVMediaSelections on this AVAsset.
        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.
        artworkData - Artwork data for this asset. Optional. Will show up in the usage pane of the settings app.
        options - See AVAssetDownloadTask*Key above. Configures non-default behavior for the download task. API-Since: 11.0
      • assetDownloadTaskWithConfiguration

        @NotNull
        public @NotNull AVAssetDownloadTask assetDownloadTaskWithConfiguration​(@NotNull
                                                                               @NotNull AVAssetDownloadConfiguration downloadConfiguration)
        assetDownloadTaskWithConfiguration: Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession. This method will throw an exception if the URLSession has been invalidated.
        Parameters:
        downloadConfiguration - The configuration to be used to create the download task. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.