I'm just getting started with NeoAppBuilder and absolutely loving it - great product.
I've found the "Plugin Builder" hidden away in the Tools menu, and am assuming this can be used to add Phonegap plugins (or other plugins) - would that be correct?
If I wanted to add a standard Phonegap Plugin - for example, the Barcode Scanner (https://github.com/phonegap/phonegap-pl ... odescanner) - how would I use the Plugin Builder to add the two actions it requires (cordova.plugins.barcodeScanner.scan and cordova.plugins.barcodeScanner.encode) and get parameters back?
As an example, the scan action in javascript is:
Code: Select all
cordova.plugins.barcodeScanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
}
);
Thanks,
James