Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[readme] corrected supported types for iOS
Browse files Browse the repository at this point in the history
+ Fixes #1, thanks @shazron
  • Loading branch information
Ryan Willoughby committed Oct 25, 2012
1 parent 9211290 commit 7119054
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 7119054

Please sign in to comment.