[readme] corrected supported types for iOS

+ Fixes #1, thanks @shazron
This commit is contained in:
Ryan Willoughby
2012-10-25 11:38:13 -07:00
parent 9211290b76
commit 7119054ce6
+13
View File
@@ -14,6 +14,8 @@ committed with an updated jar.
The plugin creates the object `window.plugins.barcodeScanner` with the method `scan(success, fail)`.
The following barcode types are currently supported:
### Android
* QR_CODE
* DATA_MATRIX
* UPC_E
@@ -29,6 +31,17 @@ The following barcode types are currently supported:
* PDF417
* RSS_EXPANDED
### iOS
* QR_CODE
* DATA_MATRIX
* UPC_E
* UPC_A
* EAN_8
* EAN_13
* CODE_128
* CODE_3
`success` and `fail` are callback functions. Success is passed an object with data, type and cancelled properties. Data is the text representation of the barcode data, type is the type of barcode detected and cancelled is whether or not the user cancelled the scan.
A full example could be: