Created
October 8, 2010 21:21
-
-
Save brianleroux/617582 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld extends Plugin { | |
public PluginResult execute(String action, JSONArray args, String callbackId) { | |
if (action.equals("sayHello")) { | |
return new PluginResult(PluginResult.Status.OK, "HELLO FROM NATIVE CODES!"); | |
} | |
else { | |
return new PluginResult(PluginResult.Status.INVALID_ACTION); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment