respond(with:)
Provides data to the loading request.
Declaration
func respond(with data: 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.