You should be able to pass a JavaScriptObject that represents the object to a JavaScript function. However, I do not think that you can do anything with Java functions. So, for example, you could:
final native JavaScriptObjet myFuncCreator()
final native int myFuncUser(JavaScriptObject funcObj, int a, int b)
Admittedly, I have not tried this code, but I believe that it should work.
source
share