Class AVAssetDownloadTask

  • All Implemented Interfaces:
    NSCopying, NSProgressReporting, NSObject

    public class AVAssetDownloadTask
    extends NSURLSessionTask
    AVAssetDownloadTask A NSURLSessionTask that accepts remote AVURLAssets to download locally. Should be created with -[AVAssetDownloadURLSession assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options:]. To utilize local data for playback for downloads that are in-progress, re-use the URLAsset supplied in initialization. An AVAssetDownloadTask may be instantiated with a destinationURL pointing to an existing asset on disk, for the purpose of completing or augmenting a downloaded asset. API-Since: 9.0
    • Constructor Detail

      • AVAssetDownloadTask

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVAssetDownloadTask allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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)
      • 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()
      • URLAsset

        @NotNull
        public @NotNull AVURLAsset URLAsset()
        [@property] URLAsset The asset supplied to the download task upon initialization.
      • destinationURL

        @NotNull
        @Deprecated
        public @NotNull NSURL destinationURL()
        Deprecated.
        [@property] destinationURL The file URL supplied to the download task upon initialization. This URL may have been appended with the appropriate extension for the asset. API-Since: 9.0 Deprecated-Since: 10.0 Deprecated-Message: Use the URL property of URLAsset instead
      • loadedTimeRanges

        @NotNull
        public @NotNull NSArray<? extends NSValue> loadedTimeRanges()
        [@property] loadedTimeRanges This property provides a collection of time ranges for which the download task has media data already downloaded and playable. The ranges provided might be discontinuous. Returns an NSArray of NSValues containing CMTimeRanges.
      • options

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> options()
        [@property] options The options supplied to the download task upon initialization.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.