Package 

Interface JavaJSExecutor


  • 
    public interface JavaJSExecutor
    
                        

    This 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.

    • Method Summary

      Modifier and Type Method Description
      abstract void close() Close this executor and cleanup any resources that it was using.
      abstract void loadBundle(String sourceURL) Load javascript into the js context
      abstract String executeJSCall(String methodName, String jsonArgsArray) Execute javascript method within js context
      abstract void setGlobalVariable(String propertyName, String jsonEncodedValue)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 executed
        jsonArgsArray - json encoded array of arguments provided for the method call