Contents

WKNavigationDelegate

Methods for accepting or rejecting navigation changes, and for tracking the progress of navigation requests.

Declaration

@MainActor protocol WKNavigationDelegate : NSObjectProtocol

Mentioned in

Overview

Implement the methods of the WKNavigationDelegate protocol in the object you use to coordinate changes in your web view’s main frame. As the user attempts to navigate web content, the web view coordinates with its navigation delegate to manage any transitions. For example, you might use these methods to restrict navigation from specific links within your content. You might also use them to track the progress of requests, and to respond to errors and authentication challenges.

Topics

Allowing or denying navigation requests

Tracking the load progress of a request

Responding to authentication challenges

Responding to navigation errors

Handling download progress

Instance Methods

See Also

Navigation