Protocol

WKNavigationDelegate

The methods of the WKNavigationDelegate protocol help you implement custom behaviors that are triggered during a web view's process of accepting, loading, and completing a navigation request.

Symbols

Initiating the Navigation

func webView(WKWebView, didCommit: WKNavigation!)

Called when the web view begins to receive web content.

func webView(WKWebView, didStartProvisionalNavigation: WKNavigation!)

Called when web content begins to load in a web view.

Responding to Server Actions

func webView(WKWebView, didCommit: WKNavigation!)

Called when the web view begins to receive web content.

Reacting to Errors

func webView(WKWebView, didFail: WKNavigation!, withError: Error)

Called when an error occurs during navigation.

func webView(WKWebView, didFailProvisionalNavigation: WKNavigation!, withError: Error)

Called when an error occurs while the web view is loading content.

Tracking Load Progress

func webView(WKWebView, didFinish: WKNavigation!)

Called when the navigation is complete.

func webViewWebContentProcessDidTerminate(WKWebView)

Called when the web view’s web content process is terminated.

Navigation Policies

WKNavigationActionPolicy

The policy to pass back to the decision handler from the webView(_:decidePolicyFor:decisionHandler:) method.

WKNavigationResponsePolicy

The policy to pass back to the decision handler from the webView(_:decidePolicyFor:decisionHandler:) method.

Relationships

Inherits From