CallbackContext: Add success method for boolean (#1864)

- Add helper method for success callbacks that returns `Status.OK` with a boolean
This commit is contained in:
Manuel Beck
2025-12-17 10:31:26 +01:00
committed by GitHub
parent fb562f4ed0
commit 6b76757c80

View File

@@ -61,6 +61,15 @@ public class CallbackContext {
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
*