public class AVAssetDownloadURLSession extends NSURLSession
A subclass of NSURLSession to support AVAssetDownloadTask.
NSURLSession.Block_dataTaskWithRequestCompletionHandler, NSURLSession.Block_dataTaskWithURLCompletionHandler, NSURLSession.Block_downloadTaskWithRequestCompletionHandler, NSURLSession.Block_downloadTaskWithResumeDataCompletionHandler, NSURLSession.Block_downloadTaskWithURLCompletionHandler, NSURLSession.Block_flushWithCompletionHandler, NSURLSession.Block_getAllTasksWithCompletionHandler, NSURLSession.Block_getTasksWithCompletionHandler, NSURLSession.Block_resetWithCompletionHandler, NSURLSession.Block_uploadTaskWithRequestFromDataCompletionHandler, NSURLSession.Block_uploadTaskWithRequestFromFileCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVAssetDownloadURLSession(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
AVAggregateAssetDownloadTask |
aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(AVURLAsset URLAsset,
NSArray<? extends AVMediaSelection> mediaSelections,
java.lang.String title,
NSData artworkData,
NSDictionary<java.lang.String,?> options)
aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options:
|
static AVAssetDownloadURLSession |
alloc() |
static AVAssetDownloadURLSession |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
AVAssetDownloadTask |
assetDownloadTaskWithConfiguration(AVAssetDownloadConfiguration downloadConfiguration)
assetDownloadTaskWithConfiguration:
|
AVAssetDownloadTask |
assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions(AVURLAsset URLAsset,
java.lang.String title,
NSData artworkData,
NSDictionary<java.lang.String,?> options)
assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options:
|
AVAssetDownloadTask |
assetDownloadTaskWithURLAssetDestinationURLOptions(AVURLAsset URLAsset,
NSURL destinationURL,
NSDictionary<java.lang.String,?> options)
assetDownloadTaskWithURLAsset:destinationURL:options:
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
AVAssetDownloadURLSession |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static AVAssetDownloadURLSession |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static NSURLSession |
sessionWithConfiguration(NSURLSessionConfiguration configuration) |
static AVAssetDownloadURLSession |
sessionWithConfigurationAssetDownloadDelegateDelegateQueue(NSURLSessionConfiguration configuration,
AVAssetDownloadDelegate delegate,
NSOperationQueue delegateQueue)
sessionWithConfiguration:assetDownloadDelegate:delegateQueue:
|
static NSURLSession |
sessionWithConfigurationDelegateDelegateQueue(NSURLSessionConfiguration configuration,
NSURLSessionDelegate delegate,
NSOperationQueue queue) |
static void |
setVersion_static(long aVersion) |
static NSURLSession |
sharedSession() |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
configuration, dataTaskWithRequest, dataTaskWithRequestCompletionHandler, dataTaskWithURL, dataTaskWithURLCompletionHandler, delegate, delegateQueue, downloadTaskWithRequest, downloadTaskWithRequestCompletionHandler, downloadTaskWithResumeData, downloadTaskWithResumeDataCompletionHandler, downloadTaskWithURL, downloadTaskWithURLCompletionHandler, finishTasksAndInvalidate, flushWithCompletionHandler, getAllTasksWithCompletionHandler, getTasksWithCompletionHandler, invalidateAndCancel, resetWithCompletionHandler, sessionDescription, setSessionDescription, streamTaskWithHostNamePort, streamTaskWithNetService, uploadTaskWithRequestFromData, uploadTaskWithRequestFromDataCompletionHandler, uploadTaskWithRequestFromFile, uploadTaskWithRequestFromFileCompletionHandler, uploadTaskWithStreamedRequest, webSocketTaskWithRequest, webSocketTaskWithURL, webSocketTaskWithURLProtocolsaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected AVAssetDownloadURLSession(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static AVAssetDownloadURLSession alloc()
public static AVAssetDownloadURLSession allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static AVAssetDownloadURLSession new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static NSURLSession sessionWithConfiguration(NSURLSessionConfiguration configuration)
public static AVAssetDownloadURLSession sessionWithConfigurationAssetDownloadDelegateDelegateQueue(NSURLSessionConfiguration configuration, AVAssetDownloadDelegate delegate, NSOperationQueue delegateQueue)
Creates and initializes an AVAssetDownloadURLSession for use with AVAssetDownloadTasks.
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.public static NSURLSession sessionWithConfigurationDelegateDelegateQueue(NSURLSessionConfiguration configuration, NSURLSessionDelegate delegate, NSOperationQueue queue)
public static void setVersion_static(long aVersion)
public static NSURLSession sharedSession()
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public AVAssetDownloadTask assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions(AVURLAsset URLAsset, java.lang.String title, NSData artworkData, NSDictionary<java.lang.String,?> options)
Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession.
This method may return nil if the URLSession has been invalidated.
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.public AVAssetDownloadTask assetDownloadTaskWithURLAssetDestinationURLOptions(AVURLAsset URLAsset, NSURL destinationURL, NSDictionary<java.lang.String,?> options)
Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession.
This method may return nil if the URLSession has been invalidated.
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.public AVAssetDownloadURLSession init()
init in class NSURLSessionpublic AVAggregateAssetDownloadTask aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(AVURLAsset URLAsset, NSArray<? extends AVMediaSelection> mediaSelections, java.lang.String title, NSData artworkData, NSDictionary<java.lang.String,?> 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.
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.public AVAssetDownloadTask assetDownloadTaskWithConfiguration(AVAssetDownloadConfiguration downloadConfiguration)
Creates and initializes an AVAssetDownloadTask to be used with this AVAssetDownloadURLSession.
This method will throw an exception if the URLSession has been invalidated.
downloadConfiguration - The configuration to be used to create the download task.