diff --git a/framework/src/com/phonegap/api/Plugin.java b/framework/src/com/phonegap/api/Plugin.java index 9ca7281c..05ee7efd 100755 --- a/framework/src/com/phonegap/api/Plugin.java +++ b/framework/src/com/phonegap/api/Plugin.java @@ -17,12 +17,20 @@ public interface Plugin { /** * Executes the request and returns PluginResult. * - * @param action The plugin to execute. - * @param args JSONArry of arguments for the plugin. - * @return A PluginResult object with a status and message. + * @param action The action to execute. + * @param args JSONArry of arguments for the plugin. + * @return A PluginResult object with a status and message. */ PluginResult execute(String action, JSONArray args); + /** + * Identifies if action to be executed returns a value. + * + * @param action The action to execute + * @return T=returns value + */ + public boolean hasReturnValue(String action); + /** * Sets the context of the Plugin. This can then be used to do things like * get file paths associated with the Activity.