[ 
https://issues.apache.org/jira/browse/CB-14059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wojciech Trocki updated CB-14059:
---------------------------------
    Summary: Improve API for plugin action handlers on Android platform  (was: 
Improve Action handlers for Android platform)

> Improve API for plugin action handlers on Android platform
> ----------------------------------------------------------
>
>                 Key: CB-14059
>                 URL: https://issues.apache.org/jira/browse/CB-14059
>             Project: Apache Cordova
>          Issue Type: Improvement
>            Reporter: Wojciech Trocki
>            Priority: Minor
>
> On the cordova-dev list one of the community members suggested that Android 
> APi seems to be much complex than IOS. See: 
> [http://mail-archives.apache.org/mod_mbox/cordova-dev/201804.mbox/browser]
> ??cordova-ios has a nice method binding for plugins. Unfortunately 
> cordova-android requires at present boilerplate implementation of method 
> execute:??
> {code}
>  public class MyPlugin extends CordovaPlugin {
>  @Override
>  public boolean execute(String action, JSONArray args, CallbackContext 
> callbackContext) {
>        if (METHOD_1.equals(action)) { 
>               method1(args, callbackContext);  
>        }
>        else if (METHOD_2.equals(action)) { 
>             method2(args, callbackContext); ... 
>        }
>  }
> }
> {code}
> Creating ticket to suggest improvements to Android Api.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to