cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying cordova bar code scanner plugin interface in sap ui5 for andriod

former_member200679
Participant
0 Kudos

Hi,

i am using cordova.plugins.barcodeScanner.scan to capture QR Code data in sap ui5 application. In desktop, when the plugin is called, its opens a dialog, which has dialog header and a cancel button in the footer. This dialog is generated at runtime. I want to modify its Title and button text. How can i change them?

Below is the snapshot of the dialog:

I want to Change dialog title to "Scan a QR Code" and Cancel button text to another language.

Below screenshot is taken in Android mobile(7.1.1):

Is it possible to provide blue square at the edges to define qr code scanning area?

Can i add text on the top of this camera view?

I want to show error message on camera view itself - for example if the scanned qr code is not correct then there should be a message displayed from cordova and that message would be defined by me and after showing error message the camera must be kept in scan mode and it should not get closed. I tried handling it via sap ui5 message control to display message, but then the camera view gets closed.

Please suggest how to carry out above changes for andriod mobile and windows desktop.

Thanks,

Saurabh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Saurabh,

how you have opened cordova.plugins.barcodescanners.scan() in dialog?

could you please share the code so i can get help because i am not able to open open inside dialog.

so kindly do needful.

Regards,

Prashant Singh

former_member200679
Participant
0 Kudos

Hi Prashant,

The dialog is coming either from cordova plugin itself or from web IDE cordova emulator, its not there in application code.