Lets you process 1D/2D barcodes.
Barcode module has support for iOS 4 and later. The module does not support iOS versions prior to iOS 4.
To access this module from JavaScript, you would do the following:
Titanium.Barcode = Ti.Barcode = require("ti.barcode");
Brings up the camera and begins the capture sequence for processing a barcode. Takes one argument, a dictionary containing the keys:
Each callback receives an event with the following properties, if available:
Value that indicates if the barcode capture should analyze captured images in either portrait or landscape device orientation. (Warning: Analyzing both the captured image and the rotated version(s) of the image will increase the processing time of the capture.)
Controls the message that is displayed to the end user when they are capturing a barcode.
Value representing URL content
Value representing SMS content
Value representing telephone number content
Value representing text content
Value representing date content
Value representing geolocation content
Value representing an email address
Value representing contact information (vcard or mecard)
Value representing bookmark content
See example.
Jeff Haynie jhaynie@appcelerator.com, Appcelerator Inc.
Jeff English jenglish@appcelerator.com, Appcelerator Inc.
Copyright(c) 2010-2011 by Appcelerator, Inc. All Rights Reserved. Please see the LICENSE file included in the distribution for further details.