@nota/nativescript-webview-ext
Version:
Extended WebView for NativeScript which adds 'x-local' scheme for local-files. events between WebView and native-layer, javascript execution, injecting CSS and JS-files.
23 lines (22 loc) • 1.32 kB
TypeScript
/// <reference path="node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="platforms/ios/NotaWebViewExt.d.ts" />
import { WebViewExtBase } from "./webview-ext-common";
export declare class WKNavigationDelegateImpl extends NSObject implements WKNavigationDelegate {
static ObjCProtocols: {
prototype: WKNavigationDelegate;
}[];
static initWithOwner(owner: WeakRef<WebViewExtBase>): WKNavigationDelegateImpl;
private _owner;
webViewDecidePolicyForNavigationActionDecisionHandler(webView: WKWebView, navigationAction: WKNavigationAction, decisionHandler: any): void;
webViewDidStartProvisionalNavigation(webView: WKWebView, navigation: WKNavigation): void;
webViewDidFinishNavigation(webView: WKWebView, navigation: WKNavigation): void;
webViewDidFailNavigationWithError(webView: WKWebView, navigation: WKNavigation, error: NSError): void;
}
export declare class WKScriptMessageHandlerImpl extends NSObject implements WKScriptMessageHandler {
static ObjCProtocols: {
prototype: WKScriptMessageHandler;
}[];
private _owner;
static initWithOwner(owner: WeakRef<WebViewExtBase>): WKScriptMessageHandlerImpl;
userContentControllerDidReceiveScriptMessage(userContentController: WKUserContentController, webViewMessage: WKScriptMessage): void;
}