forked from github/cordova-android
Cleanups to CordovaPlugin.
This commit is contained in:
parent
4e0c8982c9
commit
891f8d00cf
@ -33,7 +33,8 @@ public class CordovaPlugin {
|
|||||||
public CordovaInterface cordova;
|
public CordovaInterface cordova;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ctx The context of the main Activity.
|
* @param cordova The context of the main Activity.
|
||||||
|
* @param webView The associated CordovaWebView.
|
||||||
*/
|
*/
|
||||||
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
|
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
|
||||||
assert this.cordova == null;
|
assert this.cordova == null;
|
||||||
@ -50,10 +51,10 @@ public class CordovaPlugin {
|
|||||||
* To run on the UI thread, use:
|
* To run on the UI thread, use:
|
||||||
* cordova.getActivity().runOnUiThread(runnable);
|
* cordova.getActivity().runOnUiThread(runnable);
|
||||||
*
|
*
|
||||||
* @param action The action to execute.
|
* @param action The action to execute.
|
||||||
* @param rawArgs The exec() arguments in JSON form.
|
* @param rawArgs The exec() arguments in JSON form.
|
||||||
* @param callbackId The callback id used when calling back into JavaScript.
|
* @param callbackContext The callback context used when calling back into JavaScript.
|
||||||
* @return Whether the action was valid.
|
* @return Whether the action was valid.
|
||||||
*/
|
*/
|
||||||
public boolean execute(String action, String rawArgs, CallbackContext callbackContext) throws JSONException {
|
public boolean execute(String action, String rawArgs, CallbackContext callbackContext) throws JSONException {
|
||||||
JSONArray args = new JSONArray(rawArgs);
|
JSONArray args = new JSONArray(rawArgs);
|
||||||
@ -69,10 +70,10 @@ public class CordovaPlugin {
|
|||||||
* To run on the UI thread, use:
|
* To run on the UI thread, use:
|
||||||
* cordova.getActivity().runOnUiThread(runnable);
|
* cordova.getActivity().runOnUiThread(runnable);
|
||||||
*
|
*
|
||||||
* @param action The action to execute.
|
* @param action The action to execute.
|
||||||
* @param args The exec() arguments.
|
* @param args The exec() arguments.
|
||||||
* @param callbackId The callback id used when calling back into JavaScript.
|
* @param callbackContext The callback context used when calling back into JavaScript.
|
||||||
* @return Whether the action was valid.
|
* @return Whether the action was valid.
|
||||||
*/
|
*/
|
||||||
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
|
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user