IWKNavigationDelegate
ContentProcessDidTerminate(WKWebView)
DecidePolicy(WKWebView, WKNavigationAction, Action<WKNavigationActionPolicy>)
DecidePolicy(WKWebView, WKNavigationResponse, Action<WKNavigationResponsePolicy>)
DecidePolicy(WKWebView, WKNavigationAction, WKWebpagePreferences, Action<WKNavigationActionPolicy, WKWebpagePreferences>)
DidCommitNavigation(WKWebView, WKNavigation)
DidFailNavigation(WKWebView, WKNavigation, NSError)
DidFailProvisionalNavigation(WKWebView, WKNavigation, NSError)
DidFinishNavigation(WKWebView, WKNavigation)
DidReceiveAuthenticationChallenge(WKWebView, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential>)
DidReceiveServerRedirectForProvisionalNavigation(WKWebView, WKNavigation)
DidStartProvisionalNavigation(WKWebView, WKNavigation)
NavigationActionDidBecomeDownload(WKWebView, WKNavigationAction, WKDownload)
NavigationResponseDidBecomeDownload(WKWebView, WKNavigationResponse, WKDownload)
ShouldAllowDeprecatedTls(WKWebView, NSUrlAuthenticationChallenge, Action<Boolean>)
ShouldGoToBackForwardListItem(WKWebView, WKBackForwardListItem, Boolean, WKNavigationDelegateShouldGoToBackForwardListItemCallback)
ContentProcessDidTerminate(IWKNavigationDelegate, WKWebView)
DecidePolicy(IWKNavigationDelegate, WKWebView, WKNavigationAction, Action<WKNavigationActionPolicy>)
DecidePolicy(IWKNavigationDelegate, WKWebView, WKNavigationResponse, Action<WKNavigationResponsePolicy>)
DecidePolicy(IWKNavigationDelegate, WKWebView, WKNavigationAction, WKWebpagePreferences, Action<WKNavigationActionPolicy, WKWebpagePreferences>)
DidCommitNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)
DidFailNavigation(IWKNavigationDelegate, WKWebView, WKNavigation, NSError)
DidFailProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation, NSError)
DidFinishNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)
DidReceiveAuthenticationChallenge(IWKNavigationDelegate, WKWebView, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential>)
DidReceiveServerRedirectForProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)
DidStartProvisionalNavigation(IWKNavigationDelegate, WKWebView, WKNavigation)
NavigationActionDidBecomeDownload(IWKNavigationDelegate, WKWebView, WKNavigationAction, WKDownload)
NavigationResponseDidBecomeDownload(IWKNavigationDelegate, WKWebView, WKNavigationResponse, WKDownload)
ShouldAllowDeprecatedTls(IWKNavigationDelegate, WKWebView, NSUrlAuthenticationChallenge, Action<Boolean>)
ShouldGoToBackForwardListItem(IWKNavigationDelegate, WKWebView, WKBackForwardListItem, Boolean, WKNavigationDelegateShouldGoToBackForwardListItemCallback)
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:shouldGoToBackForwardListItem:willUseInstantBack:completionHandler:")]
[OptionalMember]
[SupportedOSPlatform("ios18.4")]
[SupportedOSPlatform("maccatalyst18.4")]
[SupportedOSPlatform("macos15.4")]
[UnsupportedOSPlatform("tvos")]
virtual void ShouldGoToBackForwardListItem(WKWebView! webView, WKBackForwardListItem! backForwardListItem, bool willUseInstantBack, [BlockProxy(typeof(NIDWKNavigationDelegateShouldGoToBackForwardListItemCallback))] WKNavigationDelegateShouldGoToBackForwardListItemCallback! completionHandler);
}
}
| .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:
|
- Built-in API
- Package-provided API