public abstract class ForcePlugin
extends CordovaPlugin
Constructor and Description |
---|
ForcePlugin() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
Abstract method to concrete subclass need to implement
|
boolean |
execute(java.lang.String action,
JSONArray args,
CallbackContext callbackContext)
Executes the plugin request and returns PluginResult.
|
public boolean execute(java.lang.String action, JSONArray args, CallbackContext callbackContext) throws JSONException
action
- The action to exectuteargs
- JSONArray of arguments for the plugin (possibly starting with version)callbackContext
- Used when calling back into Javascript.JSONException
protected abstract boolean execute(java.lang.String actionStr, JavaScriptPluginVersion jsVersion, JSONArray args, CallbackContext callbackContext) throws JSONException
actionStr
- The action to executeargs
- JSONArray of arguments for the plugin.callbackContext
- Used when calling back into Javascript.JSONException