Trait objc2_web_kit::WKNavigationDelegate
source · pub unsafe trait WKNavigationDelegate: NSObjectProtocol {
Show 14 methods
// Provided methods
unsafe fn webView_decidePolicyForNavigationAction_decisionHandler(
&self,
web_view: &WKWebView,
navigation_action: &WKNavigationAction,
decision_handler: &Block<dyn Fn(WKNavigationActionPolicy)>
)
where Self: Sized + Message { ... }
unsafe fn webView_decidePolicyForNavigationAction_preferences_decisionHandler(
&self,
web_view: &WKWebView,
navigation_action: &WKNavigationAction,
preferences: &WKWebpagePreferences,
decision_handler: &Block<dyn Fn(WKNavigationActionPolicy, NonNull<WKWebpagePreferences>)>
)
where Self: Sized + Message { ... }
unsafe fn webView_decidePolicyForNavigationResponse_decisionHandler(
&self,
web_view: &WKWebView,
navigation_response: &WKNavigationResponse,
decision_handler: &Block<dyn Fn(WKNavigationResponsePolicy)>
)
where Self: Sized + Message { ... }
unsafe fn webView_didStartProvisionalNavigation(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>
)
where Self: Sized + Message { ... }
unsafe fn webView_didReceiveServerRedirectForProvisionalNavigation(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>
)
where Self: Sized + Message { ... }
unsafe fn webView_didFailProvisionalNavigation_withError(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>,
error: &NSError
)
where Self: Sized + Message { ... }
unsafe fn webView_didCommitNavigation(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>
)
where Self: Sized + Message { ... }
unsafe fn webView_didFinishNavigation(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>
)
where Self: Sized + Message { ... }
unsafe fn webView_didFailNavigation_withError(
&self,
web_view: &WKWebView,
navigation: Option<&WKNavigation>,
error: &NSError
)
where Self: Sized + Message { ... }
unsafe fn webView_didReceiveAuthenticationChallenge_completionHandler(
&self,
web_view: &WKWebView,
challenge: &NSURLAuthenticationChallenge,
completion_handler: &Block<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>
)
where Self: Sized + Message { ... }
unsafe fn webViewWebContentProcessDidTerminate(&self, web_view: &WKWebView)
where Self: Sized + Message { ... }
unsafe fn webView_authenticationChallenge_shouldAllowDeprecatedTLS(
&self,
web_view: &WKWebView,
challenge: &NSURLAuthenticationChallenge,
decision_handler: &Block<dyn Fn(Bool)>
)
where Self: Sized + Message { ... }
unsafe fn webView_navigationAction_didBecomeDownload(
&self,
web_view: &WKWebView,
navigation_action: &WKNavigationAction,
download: &WKDownload
)
where Self: Sized + Message { ... }
unsafe fn webView_navigationResponse_didBecomeDownload(
&self,
web_view: &WKWebView,
navigation_response: &WKNavigationResponse,
download: &WKDownload
)
where Self: Sized + Message { ... }
}
Available on crate feature
WKNavigationDelegate
only.Provided Methods§
Available on crate feature
WKNavigationAction
and crate feature WKWebView
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigationAction
and crate feature WKWebView
and crate feature WKWebpagePreferences
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigationResponse
and crate feature WKWebView
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKNavigation
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_didReceiveAuthenticationChallenge_completionHandler( &self, web_view: &WKWebView, challenge: &NSURLAuthenticationChallenge, completion_handler: &Block<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)> )
Available on crate feature
WKWebView
and crate feature block2
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewWebContentProcessDidTerminate(&self, web_view: &WKWebView)
Available on crate feature
WKWebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_authenticationChallenge_shouldAllowDeprecatedTLS( &self, web_view: &WKWebView, challenge: &NSURLAuthenticationChallenge, decision_handler: &Block<dyn Fn(Bool)> )
Available on crate feature
WKWebView
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKDownload
and crate feature WKNavigationAction
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.Available on crate feature
WKDownload
and crate feature WKNavigationResponse
and crate feature WKWebView
and crate feature objc2-app-kit
and macOS only.