Package apple.avfoundation
Class AVAssetResourceLoadingRequest
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAssetResourceLoadingRequest
-
- All Implemented Interfaces:
NSObject
- Direct Known Subclasses:
AVAssetResourceRenewalRequest
public class AVAssetResourceLoadingRequest extends NSObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVAssetResourceLoadingRequest(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVAssetResourceLoadingRequestalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()AVAssetResourceLoadingContentInformationRequestcontentInformationRequest()[@property] contentInformationRequest An instance of AVAssetResourceLoadingContentInformationRequest that you should populate with information about the resource.AVAssetResourceLoadingDataRequestdataRequest()[@property] dataRequest An instance of AVAssetResourceLoadingDataRequest that indicates the range of resource data that's being requested.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidfinishLoading()finishLoading Causes the receiver to treat the processing of the request as complete.voidfinishLoadingWithError(NSError error)finishLoadingWithError: Causes the receiver to treat the request as having failed.voidfinishLoadingWithResponseDataRedirect(NSURLResponse response, NSData data, NSURLRequest redirect)Deprecated.static longhash_static()AVAssetResourceLoadingRequestinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisCancelled()[@property] cancelled Indicates whether the request has been cancelled.booleanisFinished()[@property] finished Indicates whether loading of the resource has been finished.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()NSDatapersistentContentKeyFromKeyVendorResponseOptionsError(NSData keyVendorResponse, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)persistentContentKeyFromKeyVendorResponse:options:error: Obtains a persistable content key from a context.NSURLRequestredirect()[@property] redirect Set the value of this property to an instance of NSURLRequest indicating a redirection of the loading request to another URL.NSURLRequestrequest()[@property] request An NSURLRequest for the requested resource.AVAssetResourceLoadingRequestorrequestor()[@property] requestor The AVAssetResourceLoadingRequestor that made this requeststatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSURLResponseresponse()[@property] response Set the value of this property to an instance of NSURLResponse indicating a response to the loading request.voidsetRedirect(NSURLRequest value)[@property] redirect Set the value of this property to an instance of NSURLRequest indicating a redirection of the loading request to another URL.voidsetResponse(NSURLResponse value)[@property] response Set the value of this property to an instance of NSURLResponse indicating a response to the loading request.static voidsetVersion_static(long aVersion)NSDatastreamingContentKeyRequestDataForAppContentIdentifierOptionsError(NSData appIdentifier, NSData contentIdentifier, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)streamingContentKeyRequestDataForApp:contentIdentifier:options:error: Obtains a streaming content key request for a specific combination of application and content.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAssetResourceLoadingRequest alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
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()
-
contentInformationRequest
public AVAssetResourceLoadingContentInformationRequest contentInformationRequest()
[@property] contentInformationRequest An instance of AVAssetResourceLoadingContentInformationRequest that you should populate with information about the resource. The value of this property will be nil if no such information is being requested.
-
dataRequest
public AVAssetResourceLoadingDataRequest dataRequest()
[@property] dataRequest An instance of AVAssetResourceLoadingDataRequest that indicates the range of resource data that's being requested. The value of this property will be nil if no data is being requested.
-
finishLoading
public void finishLoading()
finishLoading Causes the receiver to treat the processing of the request as complete. If a dataRequest is present and the resource does not contain the full extent of the data that has been requested according to the values of the requestedOffset and requestedLength properties of the dataRequest, or if requestsAllDataToEndOfResource has a value of YES, you may invoke -finishLoading after you have provided as much of the requested data as the resource contains.
-
finishLoadingWithError
public void finishLoadingWithError(NSError error)
finishLoadingWithError: Causes the receiver to treat the request as having failed.- Parameters:
error- An instance of NSError indicating the reason for failure.
-
finishLoadingWithResponseDataRedirect
@Deprecated public void finishLoadingWithResponseDataRedirect(NSURLResponse response, NSData data, NSURLRequest redirect)
Deprecated.finishLoadingWithResponse:data:redirect: Causes the receiver to finish loading a resource that a delegate has previously assumed responsibility for loading by returning YES as the result of -resourceLoader:shouldWaitForLoadingOfRequestedResource:. This method is deprecated. Use the following methods instead. -[AVAssetResourceLoadingRequest setResponse:] to set the response property, -[AVAssetResourceLoadingRequest setRedirect:] to set the redirect property, -[AVAssetResourceLoadingDataRequest respondWithData:] to provide data, and -[AVAssetResourceLoadingRequest finishLoading] to indicate that loading is finished.- Parameters:
response- The NSURLResponse for the NSURLRequest of the receiver. Should be nil if no response is required.data- An instance of NSData containing the data of the resource. Should be nil if no such data is available.redirect- An instance of NSURLRequest indicating a redirect of the loading request. Should be nil if no redirect is needed.
-
init
public AVAssetResourceLoadingRequest init()
-
isCancelled
public boolean isCancelled()
[@property] cancelled Indicates whether the request has been cancelled. The value of this property becomes YES when the resource loader cancels the loading of a request, just prior to sending the message -resourceLoader:didCancelLoadingRequest: to its delegate.
-
isFinished
public boolean isFinished()
[@property] finished Indicates whether loading of the resource has been finished. The value of this property becomes YES only in response to an invocation of either -finishLoading or -finishLoadingWithError:.
-
persistentContentKeyFromKeyVendorResponseOptionsError
public NSData persistentContentKeyFromKeyVendorResponseOptionsError(NSData keyVendorResponse, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
persistentContentKeyFromKeyVendorResponse:options:error: Obtains a persistable content key from a context. The data returned from this method may be used to immediately satisfy an AVAssetResourceLoadingDataRequest, as well as any subsequent requests for the same key url. The value of AVAssetResourceLoadingContentInformationRequest.contentType must be set to AVStreamingKeyDeliveryPersistentContentKeyType when responding with data created with this method.- Parameters:
keyVendorResponse- The response returned from the key vendor as a result of a request generated from streamingContentKeyRequestDataForApp:contentIdentifier:options:error:.options- Additional information necessary to obtain the persistable content key, or nil if none.error- If obtaining the persistable content key fails, will be set to an instance of NSError describing the failure.- Returns:
- The persistable content key data that may be stored offline to answer future loading requests of the same content key.
-
redirect
public NSURLRequest redirect()
[@property] redirect Set the value of this property to an instance of NSURLRequest indicating a redirection of the loading request to another URL. If no redirection is needed, leave the value of this property set to nil. AVAssetResourceLoader supports redirects to HTTP URLs only. Redirects to other URLs will result in a loading failure.
-
request
public NSURLRequest request()
[@property] request An NSURLRequest for the requested resource.
-
response
public NSURLResponse response()
[@property] response Set the value of this property to an instance of NSURLResponse indicating a response to the loading request. If no response is needed, leave the value of this property set to nil.
-
setRedirect
public void setRedirect(NSURLRequest value)
[@property] redirect Set the value of this property to an instance of NSURLRequest indicating a redirection of the loading request to another URL. If no redirection is needed, leave the value of this property set to nil. AVAssetResourceLoader supports redirects to HTTP URLs only. Redirects to other URLs will result in a loading failure.
-
setResponse
public void setResponse(NSURLResponse value)
[@property] response Set the value of this property to an instance of NSURLResponse indicating a response to the loading request. If no response is needed, leave the value of this property set to nil.
-
streamingContentKeyRequestDataForAppContentIdentifierOptionsError
public NSData streamingContentKeyRequestDataForAppContentIdentifierOptionsError(NSData appIdentifier, NSData contentIdentifier, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
streamingContentKeyRequestDataForApp:contentIdentifier:options:error: Obtains a streaming content key request for a specific combination of application and content.- Parameters:
appIdentifier- An opaque identifier for the application. The value of this identifier depends on the particular system used to provide the decryption key.contentIdentifier- An opaque identifier for the content. The value of this identifier depends on the particular system used to provide the decryption key.options- Additional information necessary to obtain the key, or nil if none.error- If obtaining the streaming content key request fails, will be set to an instance of NSError describing the failure.- Returns:
- The key request data that must be transmitted to the key vendor to obtain the content key.
-
requestor
public AVAssetResourceLoadingRequestor requestor()
[@property] requestor The AVAssetResourceLoadingRequestor that made this request
-
-