Interface WKURLSchemeHandler


  • public interface WKURLSchemeHandler
    A class conforming to the WKURLSchemeHandler protocol provides methods for loading resources with URL schemes that WebKit doesn't know how to handle itself.
    • Method Detail

      • webViewStartURLSchemeTask

        void webViewStartURLSchemeTask​(WKWebView webView,
                                       WKURLSchemeTask urlSchemeTask)
        Notifies your app to start loading the data for a particular resource represented by the URL scheme handler task.
        Parameters:
        webView - The web view invoking the method.
        urlSchemeTask - The task that your app should start loading data for.
      • webViewStopURLSchemeTask

        void webViewStopURLSchemeTask​(WKWebView webView,
                                      WKURLSchemeTask urlSchemeTask)
        Notifies your app to stop handling a URL scheme handler task. After your app is told to stop loading data for a URL scheme handler task it must not perform any callbacks for that task. An exception will be thrown if any callbacks are made on the URL scheme handler task after your app has been told to stop loading for it.
        Parameters:
        webView - The web view invoking the method.
        urlSchemeTask - The task that your app should stop handling.