public interface WKURLSchemeHandler
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
webViewStopURLSchemeTask(WKWebView webView,
WKURLSchemeTask urlSchemeTask)
Notifies your app to stop handling a URL scheme handler task.
|
void webViewStartURLSchemeTask(WKWebView webView, WKURLSchemeTask urlSchemeTask)
webView - The web view invoking the method.urlSchemeTask - The task that your app should start loading data for.void webViewStopURLSchemeTask(WKWebView webView, WKURLSchemeTask urlSchemeTask)
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.
webView - The web view invoking the method.urlSchemeTask - The task that your app should stop handling.