import { WebViewExtBase } from './index.common'; export * from './index.common'; export interface AndroidWebViewClient extends android.webkit.WebViewClient { } export interface AndroidWebView extends com.nativescript.webviewinterface.WebView { client: AndroidWebViewClient | null; chromeClient: com.nativescript.webviewinterface.WebChromeClient | null; bridgeInterface?: com.nativescript.webviewinterface.WebViewBridgeInterface; } declare let WebViewExtClient: new (owner: AWebView) => AndroidWebViewClient; export declare class AWebView extends WebViewExtBase { static supportXLocalScheme: boolean; nativeViewProtected: AndroidWebView; protected readonly localResourceMap: Map; supportXLocalScheme: boolean; createWebViewClient?: (AWebView: any, clientClass: typeof WebViewExtClient) => android.webkit.WebViewClient; android: AndroidWebView; createNativeView(): globalAndroid.webkit.WebView; initNativeView(): void; disposeNativeView(): void; _loadUrl(src: string): void; _loadData(src: string): void; get canGoBack(): boolean; stopLoading(): void; get canGoForward(): boolean; goBack(): void; goForward(): void; reload(): void; registerLocalResource(resourceName: string, path: string): void; unregisterLocalResource(resourceName: string): void; getRegisteredLocalResource(resourceName: string): string; /** * Always load the Fetch-polyfill on Android. * * Native 'Fetch API' on Android rejects all request for resources no HTTP or HTTPS. * This breaks x-local:// requests (and file://). */ executeJavaScript(scriptCode: string): Promise; getTitle(): Promise; zoomIn(): boolean; zoomOut(): boolean; zoomBy(zoomFactor: number): void; }