We will now discuss the various other device capabilities supported by Rhodes.
Rhodes supports use of barcode from the device using Barcode API. It tries to recognize a barcode on an image:
The basic syntax looks like:
Barcode.barcode_recognize(image_file_full_path)
Barcode recognition functionality is realized as Rhode Native extension. You should add Barcode
to extension list in build.yml
located in your application folder. Barcode.barcode_recognize(image_file_full_path)
returns a string with recognized code or an empty string if not any recognized barcodes on the image. To process barcode data we can get a picture from a camera which will use barcode recognition.
For barcode recognition, Rhodes uses:
Zbar library for iPhone, Android, and Windows Mobile platforms
ZXing library for the BlackBerry platform