public class AlertPlugin extends CommonPlugin
actions, logListener, sPermissionsList
cordova, preferences, webView
Constructor and Description |
---|
AlertPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String action,
org.json.JSONArray args,
CallbackContext callbackContext)
Executes the request.
|
void |
onDestroy()
The final call you receive before your activity is destroyed.
|
void |
onReset()
Called when the WebView does a top-level navigation or refreshes.
|
void |
pluginInitialize()
Called after plugin construction and fields have been initialized.
|
addPermission, onActivityResult, onMessage, onNewIntent, onPause, onRequestPermissionResult, onRestoreStateForActivityResult, onResume, onSaveInstanceState, onStart, onStop
execute, execute, fromPluginUri, getServiceName, handleOpenForRead, hasPermisssion, initialize, onConfigurationChanged, onOverrideUrlLoading, onReceivedClientCertRequest, onReceivedHttpAuthRequest, privateInitialize, remapUri, requestPermissions, shouldAllowBridgeAccess, shouldAllowNavigation, shouldAllowRequest, shouldOpenExternalUrl, toPluginUri
public void pluginInitialize()
pluginInitialize
in class CommonPlugin
public void onReset()
CommonPlugin
Plugins should stop any long-running processes and clean up internal state.
Does nothing by default.
onReset
in class CommonPlugin
public void onDestroy()
CommonPlugin
onDestroy
in class CommonPlugin
public boolean execute(java.lang.String action, org.json.JSONArray args, 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