Class AVAssetDownloadURLSession

  • All Implemented Interfaces:
    NSObject

    public class AVAssetDownloadURLSession
    extends NSURLSession
    AVAssetDownloadURLSession A subclass of NSURLSession to support AVAssetDownloadTask.
    • Constructor Detail

      • AVAssetDownloadURLSession

        protected AVAssetDownloadURLSession​(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)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

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

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

        public static AVAssetDownloadURLSession sessionWithConfigurationAssetDownloadDelegateDelegateQueue​(NSURLSessionConfiguration configuration,
                                                                                                           AVAssetDownloadDelegate delegate,
                                                                                                           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.
        assetDownloadDelegate - 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

        public static NSURLSession sharedSession()
      • superclass_static

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

        public static long version_static()
      • assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions

        public AVAssetDownloadTask assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions​(AVURLAsset URLAsset,
                                                                                                  java.lang.String title,
                                                                                                  NSData artworkData,
                                                                                                  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.
        assetTitle - 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.
        assetArtworkData - 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.
      • assetDownloadTaskWithURLAssetDestinationURLOptions

        public AVAssetDownloadTask assetDownloadTaskWithURLAssetDestinationURLOptions​(AVURLAsset URLAsset,
                                                                                      NSURL destinationURL,
                                                                                      NSDictionary<java.lang.String,​?> options)
        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.
      • aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions

        public AVAggregateAssetDownloadTask aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions​(AVURLAsset URLAsset,
                                                                                                                                   NSArray<? extends AVMediaSelection> mediaSelections,
                                                                                                                                   java.lang.String title,
                                                                                                                                   NSData artworkData,
                                                                                                                                   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.
        assetTitle - 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.
        assetArtworkData - 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.