Java annotation using Pyjnius

188 Views Asked by At

I copied this code to use android native WebView in my Kivy application. Works perfectly :)

Now, I would like to bind my JavaScript with my Kivy application. I've read through this guide:

...
/** Show a toast from the web page */
@JavascriptInterface
public void showToast(String toast) {
...

How can I create a PyJnius class that has @JavascriptInterface annotation?

Thanks!

0

There are 0 best solutions below