insightautos / cordova-gmv-barcode-scanner

A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
MIT License
52 stars 77 forks source link

Customizable UI #13

Open BagasNS opened 5 years ago

BagasNS commented 5 years ago

can i costumize camera ui without touching native code?how to set device orientation to potrait?btw this plugins very help me, good work!

forrestmid commented 5 years ago

You cannot adjust the user interface without diving into the native code. The orientation should just be fixed regardless of device, with the scanner being long along the length of the device by default.

forrestmid commented 5 years ago

We could modify the interface to allow a webview overlay for the user to provide an HTML doc that customizes the scanner appearance. We'd need to pass through the flashlight and cancel buttons in order for the interface to function appropriately.

For now I don't have any time to pursue this but if someone else wants to go for it. This could enable cool functionality like putting a logo in the viewfinder, custom messages, and more, and would provide consistency across android/iOS more easily.