Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions framework/src/org/apache/cordova/CallbackContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ public void sendPluginResult(PluginResult pluginResult) {
webView.sendPluginResult(pluginResult, callbackId);
}

/**
* Helper for success callbacks that just returns the Status.OK by default
*
* @param message The message to add to the success result.
*/
public void success(boolean message) {
sendPluginResult(new PluginResult(PluginResult.Status.OK, message));
}

/**
* Helper for success callbacks that just returns the Status.OK by default
*
Expand Down