The barcode page show a title what is not I want . I wanna customize, and how?
I want to put an button under the barcode so that users can save the barcode image to their phone.
Can you help me with this?
Hi Iyabao,
If I understand correctly, you want to change the title at the bottom of the screen when scanning a barcode ?
To do this you can set the prompt text:
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);
}, {
"prompt": "Scan Item", // Change this to what you want it to be
});
I have the same problem, I want to add a button to close the scanner window. Is that possible?
It is not possible
@jmloveyj I need to pursue adding a button as well. I assume you mean, it's not possible because there's no API to add a button. If I modify the source to add an API, I assume it is possible. Would you please verify?
prompt message is not working on windows platform. Can you please confirm, if any thing additional needs to be done.
@seematalanki, from the docs: "prompt" : "Place a barcode inside the scan area", // supported on Android only.
This thread has been automatically locked.