Instance Method

respondWithData:

Provides data to the loading request.

Declaration

- (void)respondWithData:(NSData *)data;

Parameters

data

An instance of NSData containing some or all of the requested bytes.

Discussion

This method may be invoked multiple times on the same instance of AVAssetResourceLoadingDataRequest to provide the full range of requested data incrementally. Upon each invocation, the value of the currentOffset property is updated to match the amount of data provided.

See Also

Providing Data to a Request

requestedLength

The length, in bytes, of the data requested.

requestedOffset

The position within the resource of the first byte requested.

currentOffset

The position within the resource of the next byte.

requestsAllDataToEndOfResource

A Boolean value that indicates the entire remaining length of the resource from the offest to the end of the resource is being requested.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software