Deprecated AVAssetResourceLoadingRequest Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 7.0

finishLoadingWithResponse:data:redirect:

Causes the receiver to finish loading a resource for which a resource loader’s delegate took responsibility . (Deprecated in iOS 7.0. This method is deprecated. Use the following methods and properties instead: the response property to provide the response object, the redirect property when redirecting a request, invoking the dataRequest instance‘srespondWithData: method to provide data, and the finishLoading method to indicate that loading is finished.)

- (void)finishLoadingWithResponse:(NSURLResponse *)response data:(NSData *)data redirect:(NSURLRequest *)redirect
Parameters
response

The response object for the requested resource. Use the request object in the receiver’s request property to get information about the requested resource.

data

The data of the resource. If no data is available, specify nil.

redirect

When redirecting a resource request, use this parameter to specify the corresponding NSURLRequest object. If you are handling the request and not redirecting it, specify nil.

Discussion

When a resource loader’s delegate takes responsibility for loading a resource, it calls this method to indicate that the resource was loaded successfully. This method marks the loading request as finished and returns the provided data back to the resource loader object for processing.

Availability
  • Available in iOS 6.0 and later.
  • Deprecated in iOS 7.0.
Declared In
AVAssetResourceLoader.h