Upravit

Sdílet prostřednictvím


WKNavigationDelegate_Extensions Class

Definition

Extension methods to the IWKNavigationDelegate interface to support all the methods from the WKNavigationDelegate protocol.

public static class WKNavigationDelegate_Extensions
type WKNavigationDelegate_Extensions = class
Inheritance
WKNavigationDelegate_Extensions

Remarks

The extension methods for IWKNavigationDelegate allow developers to treat instances of the interface as having all the optional methods of the original WKNavigationDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

ContentProcessDidTerminate(IWKNavigationDelegate, WKWebView)

Method that is called when a web view's content is terminated.

DecidePolicy(IWKNavigationDelegate, WKWebView, WKNavigationAction, Action<WKNavigationActionPolicy>)

Assigns an action to be taken after the specified navigationAction has been either canceled or allowed.

DecidePolicy(IWKNavigationDelegate, WKWebView, WKNavigationResponse, Action<WKNavigationResponsePolicy>)

Assigns an action to be taken after the specified navigationResponse has been either canceled or allowed.

DidCommitNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)

Method that is called when content begins to load.

DidFailNavigation(IWKNavigationDelegate, WKWebView, WKNavigation, NSError)

Method that is called when a committed navigation fails.

DidFailProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation, NSError)

Method that is called when a committed navigation fails after data has begun to load.

DidFinishNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)

Method that is called when all the data is loaded.

DidReceiveAuthenticationChallenge(IWKNavigationDelegate, WKWebView, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential>)

Method that is called when an authentication challenge is issued.

DidReceiveServerRedirectForProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)

Method that is called when a server redirect is received.

DidStartProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)

Method that is called when data begins to load.

Applies to