Hi!

I successfully embedded GeckoView into my Android application!

Now I would like to have some application parts implemented in Java
and invoked from the browser component. Is it possible, say, to add an
JS function which will call my Java code?

Maybe I can intercept some URI loading hook? On standard Android
WebView I used shouldInterceptRequest to do that:
http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading%28android.webkit.WebView,%20java.lang.String%29

I grepped though the code and found the following interfaces:

- nsIURIContentListener::onStartURIOpen
- nsIWebBrowserChrome3::shouldLoadURI

Are there any Android/Java bingings for these methods?

Thanks!

Disclaimer: I'm a newbie in Mozilla code.

-- 
WBR,
   Roman Tsisyk <[email protected]>
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to