SAPWKNavigationDelegate
public protocol SAPWKNavigationDelegate : AnyObject
This protocol extends the WKNavigationDelegate with SAP specific functionality.
-
webView(_:handleFailedProvisionalNavigation:withError:)Default implementationThis delegate method is called before calling the
didFailProvisionalNavigationdelegate of theWKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler withnilvalue) or supply a custom error which will be relayed to the delegate’s appropriate method.Default Implementation
This delegate method is called before calling the
didFailProvisionalNavigationdelegate of theWKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler withnilvalue) or supply a custom error which will be relayed to the delegate’s appropriate method.Declaration
Swift
func webView(_ webView: WKWebView, handleFailedProvisionalNavigation navigation: WKNavigation!, withError error: Error) -> Error? -
webView(_:handleFailed:withError:)Default implementationThis delegate method is called before calling the
didFaildelegate of theWKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler withnilvalue) or supply a custom error which will be relayed to the delegate’s appropriate method.Default Implementation
This delegate method is called before calling the
didFaildelegate of theWKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler withnilvalue) or supply a custom error which will be relayed to the delegate’s appropriate method.Declaration
Swift
func webView(_ webView: WKWebView, handleFailed navigation: WKNavigation!, withError error: Error) -> Error?