net10.0-ios17.2
namespace WebKit
{
    [Protocol(Name = "WKNavigationDelegate", WrapperType = typeof(WKNavigationDelegateWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidStartProvisionalNavigation", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation) }, Selector = "webView:didStartProvisionalNavigation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidReceiveServerRedirectForProvisionalNavigation", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation) }, Selector = "webView:didReceiveServerRedirectForProvisionalNavigation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidFailProvisionalNavigation", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation), typeof(NSError) }, Selector = "webView:didFailProvisionalNavigation:withError:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidCommitNavigation", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation) }, Selector = "webView:didCommitNavigation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidFinishNavigation", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation) }, Selector = "webView:didFinishNavigation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidFailNavigation", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigation), typeof(NSError) }, Selector = "webView:didFailNavigation:withError:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ContentProcessDidTerminate", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(WKWebView) }, Selector = "webViewWebContentProcessDidTerminate:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "NavigationActionDidBecomeDownload", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigationAction), typeof(WKDownload) }, Selector = "webView:navigationAction:didBecomeDownload:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "NavigationResponseDidBecomeDownload", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigationResponse), typeof(WKDownload) }, Selector = "webView:navigationResponse:didBecomeDownload:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DecidePolicy", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity1V282) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigationAction), typeof(Action<WKNavigationActionPolicy>) }, Selector = "webView:decidePolicyForNavigationAction:decisionHandler:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DecidePolicy", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity1V283) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigationResponse), typeof(Action<WKNavigationResponsePolicy>) }, Selector = "webView:decidePolicyForNavigationResponse:decisionHandler:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DecidePolicy", ParameterBlockProxy = new[] { null, null, null, typeof(NIDActionArity2V183) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKNavigationAction), typeof(WKWebpagePreferences), typeof(Action<WKNavigationActionPolicy, WKWebpagePreferences>) }, Selector = "webView:decidePolicyForNavigationAction:preferences:decisionHandler:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidReceiveAuthenticationChallenge", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity2V11) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(NSUrlAuthenticationChallenge), typeof(Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential>) }, Selector = "webView:didReceiveAuthenticationChallenge:completionHandler:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldAllowDeprecatedTls", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity1V4) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(NSUrlAuthenticationChallenge), typeof(Action<bool>) }, Selector = "webView:authenticationChallenge:shouldAllowDeprecatedTLS:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldGoToBackForwardListItem", ParameterBlockProxy = new[] { null, null, null, typeof(NIDWKNavigationDelegateShouldGoToBackForwardListItemCallback) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKBackForwardListItem), typeof(bool), typeof(WKNavigationDelegateShouldGoToBackForwardListItemCallback) }, Selector = "webView:shouldGoToBackForwardListItem:willUseInstantBack:completionHandler:")]
    [SupportedOSPlatform("maccatalyst")]
    [SupportedOSPlatform("ios")]
    [SupportedOSPlatform("macos")]
    public interface IWKNavigationDelegate : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("webView:decidePolicyForNavigationAction:preferences:decisionHandler:")]
        [OptionalMember]
        [SupportedOSPlatform("ios13.0")]
        [SupportedOSPlatform("maccatalyst")]
        [SupportedOSPlatform("macos")]
        virtual void DecidePolicy(WKWebView! webView, WKNavigationAction! navigationAction, WKWebpagePreferences! preferences, [BlockProxy(typeof(NIDActionArity2V183))] Action<WKNavigationActionPolicy, WKWebpagePreferences!>! decisionHandler);
    }
}
.NET
10.0
Information specific to net10.0
Platforms This API is only available when you target a specific platform:
iOS
10.010.110.210.311.011.111.211.311.412.012.112.212.312.413.013.113.213.313.413.513.614.014.114.214.314.414.515.015.215.416.016.116.216.417.017.2
Mac Catalyst
13.113.213.313.413.514.214.314.414.515.015.215.416.116.216.417.017.2
macOS
10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2
Information specific to net10.0-ios17.2
Assembly

Microsoft.iOS , Version=18.5.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Preview The API is contained in a preview framework.
Platform Restrictions

This API is only supported on the following platforms:

  • iOS >= 13
  • Mac Catalyst
  • macOS
  • Built-in API
  • Package-provided API