Phonegap-plugin-barcodescanner: How Can I customize the title and can I add a button below the barcode?

Created on 8 May 2016  路  7Comments  路  Source: phonegap/phonegap-plugin-barcodescanner

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?

question

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

mrbinr picture mrbinr  路  5Comments

vespino picture vespino  路  9Comments

joshstrange picture joshstrange  路  4Comments

klickagent picture klickagent  路  3Comments