@@ -79,6 +79,11 @@ function initializeWebViewClient(): void {
79
79
@NativeClass
80
80
class WebViewImpl extends android . webkit . WebView {
81
81
isScrollEnabled = true ;
82
+
83
+ constructor ( context : android . content . Context ) {
84
+ super ( context ) ;
85
+ return global . __native ( this ) ;
86
+ }
82
87
overScrollBy (
83
88
param0 : number ,
84
89
param1 : number ,
@@ -111,12 +116,6 @@ function initializeWebViewClient(): void {
111
116
@NativeClass
112
117
class AWebViewClientImpl extends android . webkit . WebViewClient {
113
118
owner : WeakRef < AWebView > ;
114
- // constructor(owner: AWebView) {
115
- // super();
116
-
117
- // this.owner = new WeakRef(owner);
118
- // return global.__native(this);
119
- // }
120
119
121
120
/**
122
121
* Give the host application a chance to take control when a URL is about to be loaded in the current WebView.
@@ -302,12 +301,7 @@ function initializeWebViewClient(): void {
302
301
@NativeClass
303
302
class WebChromeViewExtClientImpl extends android . webkit . WebChromeClient {
304
303
private owner : WeakRef < AWebView > ;
305
- // constructor(owner: AWebView) {
306
- // super();
307
304
308
- // this.owner = new WeakRef(owner);
309
- // return global.__native(this);
310
- // },
311
305
onGeolocationPermissionsHidePrompt ( ) : void {
312
306
return super . onGeolocationPermissionsHidePrompt ( ) ;
313
307
}
@@ -459,10 +453,12 @@ export class AWebView extends AWebViewBase {
459
453
460
454
protected readonly localResourceMap = new Map < string , string > ( ) ;
461
455
456
+ //@ts -ignore
462
457
public get isUIWebView ( ) {
463
458
return false ;
464
459
}
465
460
461
+ //@ts -ignore
466
462
public get isWKWebView ( ) {
467
463
return false ;
468
464
}
0 commit comments