Commit 9d5e1f5b authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

updated shouldOverrideUrlLoading event for #146, added print method and event...

updated shouldOverrideUrlLoading event for #146, added print method and event #128, fix #123 javascript handler for Android API <= 22, renamed onTargetBlank to onCreateWindow event, deleted useOnTargetBlank option, added supportMultipleWindows android option, added getDefaultUserAgent static method, Updated default value for domStorageEnabled option to true
parent 5858f2f6
This diff is collapsed.
...@@ -502,9 +502,10 @@ class MyInAppBrowser extends InAppBrowser { ...@@ -502,9 +502,10 @@ class MyInAppBrowser extends InAppBrowser {
} }
@override @override
void shouldOverrideUrlLoading(ShouldOverrideUrlLoadingRequest shouldOverrideUrlLoadingRequest) { Future<ShouldOverrideUrlLoadingAction> shouldOverrideUrlLoading(ShouldOverrideUrlLoadingRequest shouldOverrideUrlLoadingRequest) async {
print("\n\n override ${shouldOverrideUrlLoadingRequest.url}\n\n"); print("\n\n override ${shouldOverrideUrlLoadingRequest.url}\n\n");
this.webViewController.loadUrl(url: shouldOverrideUrlLoadingRequest.url); this.webViewController.loadUrl(url: shouldOverrideUrlLoadingRequest.url);
return ShouldOverrideUrlLoadingAction.CANCEL;
} }
@override @override
......
...@@ -37,9 +37,10 @@ class MyInAppBrowser extends InAppBrowser { ...@@ -37,9 +37,10 @@ class MyInAppBrowser extends InAppBrowser {
} }
@override @override
void shouldOverrideUrlLoading(String url, Map<String, String> headers, bool isForMainFrame) { Future<ShouldOverrideUrlLoadingAction> shouldOverrideUrlLoading(ShouldOverrideUrlLoadingRequest shouldOverrideUrlLoadingRequest) async {
print("\n\n override $url\n\n"); print("\n\n override ${shouldOverrideUrlLoadingRequest.url}\n\n");
this.webViewController.loadUrl(url: url); this.webViewController.loadUrl(url: shouldOverrideUrlLoadingRequest.url);
return ShouldOverrideUrlLoadingAction.CANCEL;
} }
@override @override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment