Bridge to JavaScript methods

Bridge to JavaScriptâ„¢ methods for GWC hybrid mode for Android

The callCSF method in the GHCTools class file can execute Javascript methods in the Genero application by the webview. It takes the current webview and the JavaScript function as a string as parameters.

The class file GHCTools is a singleton class. You need to get the class instance to execute the function.

This example executes the javascript method passed in as parameters:
public void executeMyJavascriptMethod(String myParam) {
  String javascript = myParam.toString();
  // Execute the Javascript method
  GHCTools.getInstance().callCSF(getWebView(), javascript);
}