Current stable version of RhoElements includes two different APIs to handle barcode scanning:
- Scanner API, used in Motorola devices. This API includes all the parameters required to fully utilize a real barcode scanned HW (in the device or connected through bluetooth)
- Barcode API, for all the devices. This API uses the camera to acquire a barcode. It's intended for consumer devices with far less features than enterprise devices with dedicated HW.
In RhoElements v4.x, currently in beta, these two APIs are merged in only one, Barcode. The Scanner API will be deprecated but supported.
I Hope that this clarifies.
Thax for the information
On Apr 29, 2013 12:44 AM, "Pietro Francesco Maggi" <
1 of 1 people found this helpful
One more difference is(Rhoelement2.x)
If you use barcode, you should add barcode extension and camera capability in build.yml.
Scanner is not dependent on the barcode extension.
The Scanner Module provides access to control the functionality of all the device’s scanner.
Barcode and Scanner will not work in the simulator.
We do this kind of hack to test barcode functionality in Rhosimulator
:url => "http://www.google.co.in",
:callback => (url_for :action => :sacnner_callback )
barcode = "05042870"