Class AVAssetResourceLoadingRequest

    • Constructor Detail

      • AVAssetResourceLoadingRequest

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • contentInformationRequest

        @Nullable
        public @Nullable AVAssetResourceLoadingContentInformationRequest contentInformationRequest()
        [@property] contentInformationRequest An instance of AVAssetResourceLoadingContentInformationRequest that you must populate with information about the resource before responding to any AVAssetResourceLoadingDataRequests for the resource. The value of this property will be nil if no such information is being requested. API-Since: 7.0
      • dataRequest

        @Nullable
        public @Nullable AVAssetResourceLoadingDataRequest dataRequest()
        [@property] dataRequest An instance of AVAssetResourceLoadingDataRequest that indicates the range of resource data that's being requested. If an AVAssetResourceLoadingContentInformationRequest has been provided, you must set its properties appropriately before responding to any AVAssetResourceLoadingDataRequests. The value of this property will be nil if no data is being requested. API-Since: 7.0
      • 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. API-Since: 7.0
      • finishLoadingWithError

        public void finishLoadingWithError​(@Nullable
                                           @Nullable 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​(@Nullable
                                                          @Nullable NSURLResponse response,
                                                          @Nullable
                                                          @Nullable NSData data,
                                                          @Nullable
                                                          @Nullable 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. API-Since: 6.0 Deprecated-Since: 7.0 Deprecated-Message: Use -[AVAssetResourceLoadingRequest setResponse:], -[AVAssetResourceLoadingRequest setRedirect:], -[AVAssetResourceLoadingDataRequest respondWithData:], -[AVAssetResourceLoadingRequest finishLoading]
        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. API-Since: 7.0
      • 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

        @Nullable
        @Deprecated
        public @Nullable NSData persistentContentKeyFromKeyVendorResponseOptionsError​(@NotNull
                                                                                      @NotNull NSData keyVendorResponse,
                                                                                      @Nullable
                                                                                      @Nullable NSDictionary<java.lang.String,​?> options,
                                                                                      @Nullable
                                                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        Deprecated.
        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. API-Since: 9.0 Deprecated-Since: 100000.0
        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.
        outError - 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

        @Nullable
        public @Nullable 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. API-Since: 7.0
      • request

        @NotNull
        public @NotNull NSURLRequest request()
        [@property] request An NSURLRequest for the requested resource.
      • response

        @Nullable
        public @Nullable 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. API-Since: 7.0
      • setRedirect

        public void setRedirect​(@Nullable
                                @Nullable 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. API-Since: 7.0
      • setResponse

        public void setResponse​(@Nullable
                                @Nullable 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. API-Since: 7.0
      • streamingContentKeyRequestDataForAppContentIdentifierOptionsError

        @Nullable
        @Deprecated
        public @Nullable NSData streamingContentKeyRequestDataForAppContentIdentifierOptionsError​(@NotNull
                                                                                                  @NotNull NSData appIdentifier,
                                                                                                  @NotNull
                                                                                                  @NotNull NSData contentIdentifier,
                                                                                                  @Nullable
                                                                                                  @Nullable NSDictionary<java.lang.String,​?> options,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        Deprecated.
        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.
        outError - 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. API-Since: 7.0 Deprecated-Since: 100000.0
      • requestor

        @NotNull
        public @NotNull AVAssetResourceLoadingRequestor requestor()
        [@property] requestor The AVAssetResourceLoadingRequestor that made this request API-Since: 12.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.