Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transition guide for IdBarcodeRecognizer #321

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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