Skip to content

Commit

Permalink
Update Transition guide.md
Browse files Browse the repository at this point in the history
I updated the information on how to get data from an instance of `PPUsdlRecognizerResult`.  This may need to be removed once the framework is updated to include a `data` selector in `PPUsdlRecognizerResult`.

-- Austin O'Neil, DealerSocket
  • Loading branch information
austinoneil committed Jan 25, 2016
1 parent e3616e0 commit e4a611b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Transition guide.md
Expand Up @@ -59,7 +59,7 @@

`PPZXingRecognizerResult` which holds the results of ZXing scanning

- `PPScanningResult` had getters for `data`, `rawData`, `uncertain` and `type` properties. Each new class has equivalent `data`, `rawData` and `uncertain` properties. New classes (except PDF417 and USDL) have `barcodeType` property with the same function. PDF417 and USDL classes don't have type since they are always obtained by scanning PFDF417 barcode.
- `PPScanningResult` had getters for `data`, `rawData`, `uncertain` and `type` properties. Each new class has equivalent `data`, `rawData` and `uncertain` properties. New classes (except PDF417 and USDL) have `barcodeType` property with the same function. PDF417 and USDL classes don't have type since they are always obtained by scanning PFDF417 barcode. To get data in `PPUsdlRecognizerResult`, you will need to do `NSString* message = [[result getAllStringElements] valueForKey:@"pdf417"];`, assuming that `result` is the `PPUsdlRecognizerResult` instance.

- For easier integration new classes have new getters `stringUsingGuessedEncoding` which guesses the encoding string inside barcode data. Use this if you know data is textual, but you don't know the exact encoding of the string.

Expand All @@ -68,4 +68,4 @@
- All calls to `resumeScanning` replace with `resumeScanningAndResetState:YES`.
- All calls to `resumeScanningWithoutStateReset` replace with `resumeScanningAndResetState:NO`

- Remove all references to `updateScanningRegion` method since it's now being called automatically in `setScanningRegion` setter.
- Remove all references to `updateScanningRegion` method since it's now being called automatically in `setScanningRegion` setter.

0 comments on commit e4a611b

Please sign in to comment.