webView(_:plugInFailedWithError:dataSource:)
Invoked when a plug-in fails to load.
Declaration
optional func webView(_ sender: WebView!, plugInFailedWithError error: (any Error)!, dataSource: WebDataSource!)Parameters
- sender:
The web view that sent this message.
- error:
The error that occurred during the process of loading that resource.
The
userInfodictionary oferrormay contain additional information about the failure. If theuserInfodictionary is notnil, it may contain some or all of these key-value pairs. The value of theNSErrorFailingURLKeykey is a URL string of theSRCattribute. The value of the Webkiterrorpluginnamekey key is a string containing the plug-in’s name. The value for the Webkiterrorpluginpageurlstringkey key is a URL string of thePLUGINSPAGEattribute. The value of the Webkiterrormimetypekey key is a string of theTYPEattribute. - dataSource:
The data source for this web view.
Discussion
This method might be invoked if a plug-in is not found, fails to load, or is not available for some reason. Delegates might implement this method to display or log a detailed error message. If you do not implement this method, no action is taken.