Class AVAssetResourceLoadingRequest

    • Constructor Detail

      • AVAssetResourceLoadingRequest

        protected AVAssetResourceLoadingRequest​(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)
      • 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.
      • 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.