-
public interface JavaJSExecutorThis is class represents java version of native js executor interface. When set through as a CatalystInstance executor, native code will delegate js calls to the given implementation of this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceJavaJSExecutor.Factorypublic classJavaJSExecutor.ProxyExecutorException
-
Method Summary
Modifier and Type Method Description abstract voidclose()Close this executor and cleanup any resources that it was using. abstract voidloadBundle(String sourceURL)Load javascript into the js context abstract StringexecuteJSCall(String methodName, String jsonArgsArray)Execute javascript method within js context abstract voidsetGlobalVariable(String propertyName, String jsonEncodedValue)-
-
Method Detail
-
close
abstract void close()
Close this executor and cleanup any resources that it was using. No further calls are expectedafter this.
-
loadBundle
abstract void loadBundle(String sourceURL)
Load javascript into the js context
- Parameters:
sourceURL- url or file location from which script content was loaded
-
executeJSCall
abstract String executeJSCall(String methodName, String jsonArgsArray)
Execute javascript method within js context
- Parameters:
methodName- name of the method to be executedjsonArgsArray- json encoded array of arguments provided for the method call
-
setGlobalVariable
abstract void setGlobalVariable(String propertyName, String jsonEncodedValue)
-
-
-
-