public interface JsFunctionCallback
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object... args)
Invoked when the corresponding function is called on the JavaScript side.
|
java.lang.Object invoke(java.lang.Object... args)
If the method throws an exception then this exception is also thrown on JavaScript. The exception thrown on JavaScript is a string that consists of the name of the exception, the message, and the first line of the stacktrace (usually it contains the name of the class and method in which the exception occurred).
args
- the function arguments converted to Java types