WebViewDelegate
fileprivate class WebViewDelegate: NSObject, WKNavigationDelegate
The webView delegate object that performs execution uppon script loading
-
Undocumented
See moreDeclaration
Swift
fileprivate class WebViewDelegate: NSObject, WKNavigationDelegate -
The parent manager
Declaration
Swift
private weak var manager: ReCaptchaWebViewManager? -
The active requests’ urls
Declaration
Swift
private var activeRequests = Set<String>(minimumCapacity: 0) -
Declaration
Swift
init(manager: ReCaptchaWebViewManager)Parameters
managerThe parent manager
-
Decides whether to allow or cancel a navigation.
Declaration
Swift
func webView( _ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy ) -> Void)Parameters
webViewThe web view invoking the delegate method.
navigationActionDescriptive information about the action triggering the navigation request.
decisionHandlerThe decision handler to call to allow or cancel the navigation. The argument is one of the constants of the enumerated type WKNavigationActionPolicy.
-
Decides whether to allow or cancel a navigation after its response is known.
Declaration
Swift
func webView( _ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (WKNavigationResponsePolicy) -> Void )Parameters
webViewThe web view invoking the delegate method.
navigationResponseDescriptive information about the navigation response.
decisionHandlerA block to be called when your app has decided whether to allow or cancel the navigation
-
Flag the requests as finished and call ReCaptcha execution if necessary
Declaration
Swift
func execute()
WebViewDelegate Class Reference