mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
[CB-4410] Fixed @param mismatching
This commit is contained in:
parent
5c38101a9e
commit
810df61049
@ -110,8 +110,6 @@ public class CallbackContext {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper for success callbacks that just returns the Status.OK by default
|
* 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() {
|
public void success() {
|
||||||
sendPluginResult(new PluginResult(PluginResult.Status.OK));
|
sendPluginResult(new PluginResult(PluginResult.Status.OK));
|
||||||
@ -130,7 +128,6 @@ public class CallbackContext {
|
|||||||
* Helper for error callbacks that just returns the Status.ERROR by default
|
* Helper for error callbacks that just returns the Status.ERROR by default
|
||||||
*
|
*
|
||||||
* @param message The message to add to the error result.
|
* @param message The message to add to the error result.
|
||||||
* @param callbackId The callback id used when calling back into JavaScript.
|
|
||||||
*/
|
*/
|
||||||
public void error(String message) {
|
public void error(String message) {
|
||||||
sendPluginResult(new PluginResult(PluginResult.Status.ERROR, message));
|
sendPluginResult(new PluginResult(PluginResult.Status.ERROR, message));
|
||||||
@ -140,7 +137,6 @@ public class CallbackContext {
|
|||||||
* Helper for error callbacks that just returns the Status.ERROR by default
|
* Helper for error callbacks that just returns the Status.ERROR by default
|
||||||
*
|
*
|
||||||
* @param message The message to add to the error result.
|
* @param message The message to add to the error result.
|
||||||
* @param callbackId The callback id used when calling back into JavaScript.
|
|
||||||
*/
|
*/
|
||||||
public void error(int message) {
|
public void error(int message) {
|
||||||
sendPluginResult(new PluginResult(PluginResult.Status.ERROR, message));
|
sendPluginResult(new PluginResult(PluginResult.Status.ERROR, message));
|
||||||
|
@ -776,7 +776,7 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
* Send JavaScript statement back to JavaScript.
|
* Send JavaScript statement back to JavaScript.
|
||||||
* (This is a convenience method)
|
* (This is a convenience method)
|
||||||
*
|
*
|
||||||
* @param message
|
* @param statement
|
||||||
*/
|
*/
|
||||||
public void sendJavascript(String statement) {
|
public void sendJavascript(String statement) {
|
||||||
if (this.appView != null) {
|
if (this.appView != null) {
|
||||||
|
@ -148,7 +148,7 @@ public class CordovaPlugin {
|
|||||||
* @param requestCode The request code originally supplied to startActivityForResult(),
|
* @param requestCode The request code originally supplied to startActivityForResult(),
|
||||||
* allowing you to identify who this result came from.
|
* allowing you to identify who this result came from.
|
||||||
* @param resultCode The integer result code returned by the child activity through its setResult().
|
* @param resultCode The integer result code returned by the child activity through its setResult().
|
||||||
* @param data An Intent, which can return result data to the caller (various data can be attached to Intent "extras").
|
* @param intent An Intent, which can return result data to the caller (various data can be attached to Intent "extras").
|
||||||
*/
|
*/
|
||||||
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||||
}
|
}
|
||||||
|
@ -511,7 +511,7 @@ public class CordovaWebView extends WebView {
|
|||||||
* Send JavaScript statement back to JavaScript.
|
* Send JavaScript statement back to JavaScript.
|
||||||
* (This is a convenience method)
|
* (This is a convenience method)
|
||||||
*
|
*
|
||||||
* @param message
|
* @param statement
|
||||||
*/
|
*/
|
||||||
public void sendJavascript(String statement) {
|
public void sendJavascript(String statement) {
|
||||||
this.jsMessageQueue.addJavaScript(statement);
|
this.jsMessageQueue.addJavaScript(statement);
|
||||||
@ -521,7 +521,8 @@ public class CordovaWebView extends WebView {
|
|||||||
* Send a plugin result back to JavaScript.
|
* Send a plugin result back to JavaScript.
|
||||||
* (This is a convenience method)
|
* (This is a convenience method)
|
||||||
*
|
*
|
||||||
* @param message
|
* @param result
|
||||||
|
* @param callbackId
|
||||||
*/
|
*/
|
||||||
public void sendPluginResult(PluginResult result, String callbackId) {
|
public void sendPluginResult(PluginResult result, String callbackId) {
|
||||||
this.jsMessageQueue.addPluginResult(result, callbackId);
|
this.jsMessageQueue.addPluginResult(result, callbackId);
|
||||||
|
Loading…
Reference in New Issue
Block a user