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

Commit

Permalink
Merge pull request #522 from josephma93/patch-2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
macdonst authored Aug 8, 2017
2 parents 55e8440 + fdf1fda commit 5f9461e
Showing 1 changed file with 19 additions and 78 deletions.
97 changes: 19 additions & 78 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,84 +67,25 @@ If you're using [PhoneGap Build](https://build.phonegap.com/) please make sure y
The plugin creates the object `cordova.plugins.barcodeScanner` with the method `scan(success, fail)`.

The following barcode types are currently supported:
### Android

* QR_CODE
* DATA_MATRIX
* UPC_E
* UPC_A
* EAN_8
* EAN_13
* CODE_128
* CODE_39
* CODE_93
* CODABAR
* ITF
* RSS14
* RSS_EXPANDED

Not by default, but supported if you pass in the "formats" option:
* PDF_417
* AZTEC

### iOS

* QR_CODE
* DATA_MATRIX
* UPC_E
* UPC_A
* EAN_8
* EAN_13
* CODE_128
* CODE_39
* ITF

### Windows

* UPC_A
* UPC_E
* EAN_8
* EAN_13
* CODE_39
* CODE_93
* CODE_128
* ITF
* CODABAR
* MSI
* RSS14
* QR_CODE
* DATA_MATRIX
* AZTEC
* PDF_417

### Windows Phone 8

* UPC_A
* UPC_E
* EAN_8
* EAN_13
* CODE_39
* CODE_93
* CODE_128
* ITF
* CODABAR
* MSI
* RSS14
* QR_CODE
* DATA_MATRIX
* AZTEC
* PDF_417

### BlackBerry 10
* UPC_A
* UPC_E
* EAN_8
* EAN_13
* CODE_39
* CODE_128
* ITF
* DATA_MATRIX
* AZTEC

| Barcode Type | Android | iOS | Windows8 | Windows Phone 8 | BlackBerry 10 |
|---------------|:-------:|:---:|:--------:|:---------------:|:-------------:|
| QR_CODE ||||||
| DATA_MATRIX ||||||
| UPC_A ||||||
| UPC_E ||||||
| EAN_8 ||||||
| EAN_13 ||||||
| CODE_39 ||||||
| CODE_93 ||||||
| CODE_128 ||||||
| CODABAR ||||||
| ITF ||||||
| RSS14 ||||||
| PDF417 ||||||
| RSS_EXPANDED ||||||
| MSI ||||||
| AZTEC ||||||

`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.

Expand Down

0 comments on commit 5f9461e

Please sign in to comment.