execute
public boolean execute(java.lang.String action,
org.json.JSONArray args,
CallbackContext callbackContext)
throws org.json.JSONException
Executes the request.
This method is called from the WebView thread. To do a non-trivial amount of work, use:
cordova.getThreadPool().execute(runnable);
To run on the UI thread, use:
cordova.getActivity().runOnUiThread(runnable);
- Overrides:
execute
in class CordovaPlugin
- Parameters:
action
- The action to execute.
args
- The exec() arguments.
callbackContext
- The callback context used when calling back into JavaScript.
- Returns:
- Whether the action was valid.
- Throws:
org.json.JSONException