_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
This commit is contained in:
Hristo Hristov
2017-03-28 13:05:11 +03:00
parent f2898f84d5
commit c18a76c93a
38 changed files with 111 additions and 110 deletions

View File

@@ -88,7 +88,7 @@ function initializeWebViewClient(): void {
export class WebView extends WebViewBase {
nativeView: android.webkit.WebView;
public _createNativeView() {
public createNativeView() {
initializeWebViewClient();
const nativeView = new android.webkit.WebView(this._context);
@@ -100,18 +100,18 @@ export class WebView extends WebViewBase {
return nativeView;
}
public _initNativeView(): void {
public initNativeView(): void {
(<any>this.nativeView).client.owner = this;
}
public _resetNativeView() {
public resetNativeView() {
const nativeView = this.nativeView;
if (nativeView) {
nativeView.destroy();
}
(<any>nativeView).client.owner = null;
super._resetNativeView();
super.resetNativeView();
}
public _loadFileOrResource(path: string, content: string) {