Skip to content

Commit

Permalink
Merge pull request #321 from BlinkID/idbarcode-transition-guide
Browse files Browse the repository at this point in the history
Add transition guide for IdBarcodeRecognizer
  • Loading branch information
mparadina authored Apr 4, 2024
2 parents 6c919ad + 3b7533a commit ec20a2c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Transition-guide.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## 6.6.0

### IDBarcodeRecognizer
- `IdBarcodeRecognizer` is now deprecated as it is no longer maintained and all of its functionalities are available with `BlinkIdSingleSideRecognizer` and `BlinkIdMultiSideRecognizer`
- To achieve the same `IdBarcodeRecognizer` behavior with the BlinkID generic recognizers, the `RecognitionModeFilter` must be limited to only the `BarcodeId` recognition mode:
```
recognizer = BlinkIdSingleSideRecognizer()
val recognitionModeFilter: RecognitionModeFilter = RecognitionModeFilter(false, false, false, false, true, false)
recognizer.recognitionModeFilter = recognitionModeFilter
```
- The results are obtained by directly using the `result` or `barcodeResult` property from the recognizer result:
```
recognizerBundle.loadFromIntent(data)
val result: BlinkIdSingleSideRecognizer.Result = recognizer.result
val name = result.firstName?.value()
//or
val barcodeResult: BlinkIdSingleSideRecognizer.Result = recognizer.result.barcodeResult
var barcodeFirstName = barcodeResult.firstName
```
# Transition to BlinkID v6.0.0
## Breaking changes
### Repackaging of all classes
Expand Down

0 comments on commit ec20a2c

Please sign in to comment.