Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Intercept navigationDelegate, onLoaded... #20

Closed
jasonlaw opened this issue Jun 18, 2021 · 2 comments
Closed

Intercept navigationDelegate, onLoaded... #20

jasonlaw opened this issue Jun 18, 2021 · 2 comments

Comments

@jasonlaw
Copy link

Hi,

I would like to replace the current WebView with this to support for both mobile and web.
However, I find no way to handle the events such as navigationDelegate, onLoaded...
May I know how to do that?

Basically, I need to make sure this is work seamlessly as WebView before going further for web improvement.

Thanks!

@adrianflutur
Copy link
Owner

Hi, a working navigationDelegate is a little bit tricky to implement, I'll try to look into it ASAP.
The onLoaded callback is available as two separate onPageStarted and onPageFinished callbacks, like in the mobile version.

@adrianflutur
Copy link
Owner

Done #26
navigationDelegate only works for SourceType.urlBypass for now. This may change soon.
You can use onPageStarted and onPageFinished to get the next url, just like on mobile.
You can get the package from github until I publish a new version on pub.dev.
Closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants