SAPWKNavigationDelegate

public protocol SAPWKNavigationDelegate : AnyObject

This protocol extends the WKNavigationDelegate with SAP specific functionality.

  • This delegate method is called before calling the didFailProvisionalNavigation delegate of the WKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler with nil value) 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 didFailProvisionalNavigation delegate of the WKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler with nil value) 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 implementation

    This delegate method is called before calling the didFail delegate of the WKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler with nil value) 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 didFail delegate of the WKNavigationDelegate. The user can decide to ignore the error (calling the completionHandler with nil value) 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?