public interface JavaJSExecutor
ProxyJavaScriptExecutor
as a CatalystInstance
executor, native code will
delegate js calls to the given implementation of this interface.Modifier and Type | Interface and Description |
---|---|
static interface |
JavaJSExecutor.Factory |
static class |
JavaJSExecutor.ProxyExecutorException |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this executor and cleanup any resources that it was using.
|
java.lang.String |
executeJSCall(java.lang.String methodName,
java.lang.String jsonArgsArray)
Execute javascript method within js context
|
void |
loadApplicationScript(java.lang.String sourceURL)
Load javascript into the js context
|
void |
setGlobalVariable(java.lang.String propertyName,
java.lang.String jsonEncodedValue) |
void close()
void loadApplicationScript(java.lang.String sourceURL) throws JavaJSExecutor.ProxyExecutorException
sourceURL
- url or file location from which script content was loadedJavaJSExecutor.ProxyExecutorException
java.lang.String executeJSCall(java.lang.String methodName, java.lang.String jsonArgsArray) throws JavaJSExecutor.ProxyExecutorException
methodName
- name of the method to be executedjsonArgsArray
- json encoded array of arguments provided for the method callJavaJSExecutor.ProxyExecutorException
void setGlobalVariable(java.lang.String propertyName, java.lang.String jsonEncodedValue)