public abstract class CommonServicePlugin extends CommonPlugin
Modifier and Type | Field and Description |
---|---|
protected ServiceHandler |
serviceHandler |
logListener
Constructor and Description |
---|
CommonServicePlugin(java.lang.String TAG) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String action,
org.json.JSONArray args,
org.apache.cordova.CallbackContext callbackContext)
Executes the request.
|
void |
onDestroy()
The final call you receive before your activity is destroyed.
|
void |
pluginInitialize(ServiceHandler serviceHandler) |
onActivityResult, onMessage, onNewIntent, onPause, onReset, onRestoreStateForActivityResult, onResume, onSaveInstanceState, onStart, onStop, pluginInitialize
execute, execute, fromPluginUri, getServiceName, handleOpenForRead, hasPermisssion, initialize, onConfigurationChanged, onOverrideUrlLoading, onReceivedClientCertRequest, onReceivedHttpAuthRequest, onRequestPermissionResult, privateInitialize, remapUri, requestPermissions, shouldAllowBridgeAccess, shouldAllowNavigation, shouldAllowRequest, shouldOpenExternalUrl, toPluginUri
protected ServiceHandler serviceHandler
public void pluginInitialize(ServiceHandler serviceHandler)
public void onDestroy()
CommonPlugin
onDestroy
in class CommonPlugin
public boolean execute(java.lang.String action, org.json.JSONArray args, org.apache.cordova.CallbackContext callbackContext) throws org.json.JSONException
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);
execute
in class CommonPlugin
action
- The action to execute.args
- The exec() arguments.callbackContext
- The callback context used when calling back into JavaScript.org.json.JSONException