webView(_:resource:didReceiveContentLength:from:)
Invoked when some of the data for a given resource has arrived.
Declaration
optional func webView(_ sender: WebView!, resource identifier: Any!, didReceiveContentLength length: Int, from dataSource: WebDataSource!)Parameters
- sender:
The web view that sent this message.
- identifier:
An identifier object used to track the resource being loaded by
dataSource. - length:
The amount of incremental data received for this resource—the amount of data loaded since the last time this method was invoked for this resource, not the total amount received for this resource.
The
lengthparameter type was changed from typeunsigned intto typeNSUIntegerin OS X v10.5. - dataSource:
The data source for this web view.
Discussion
Delegates might implement this method to update the load status of an individual resource.