WebResourceLoadDelegate
Web view resource load delegates implement this protocol to be notified on the progress of loading individual resources. Note that there can be hundreds of resources, such as images and other media, per page. So, if you just want to get page loading status see the WebFrameLoadDelegate protocol.
Declaration
protocol WebResourceLoadDelegate : NSObjectProtocolOverview
There’s a separate client request and server response made for each resource on a page. By implementing the webView(_:identifierForInitialRequest:from:) method, resource load delegates provide a tracking object used to identify individual resources in subsequent calls to delegate methods. Delegates are then notified when resource loading starts, when data is incrementally received, when any load errors occur, and when the load is complete. Delegates may also change a request before it is sent. In some cases, depending on the page content and server redirects, methods defined in this protocol may be invoked multiple times (see individual method descriptions for more details). All the methods in this protocol are optional.
Topics
Setting Identifiers
Loading Content
webView(_:resource:willSend:redirectResponse:from:)webView(_:resource:didFinishLoadingFrom:)webView(_:resource:didReceive:from:)webView(_:resource:didReceiveContentLength:from:)webView(_:resource:didFailLoadingWithError:from:)webView(_:plugInFailedWithError:dataSource:)