Skip to content

Commit 57983a9

Browse files
Updating understand result pages
1 parent 9128003 commit 57983a9

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

programming/android/user-guide/understand-barcode-results.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ mRouter.addResultReceiver(new CapturedResultReceiver() {
2727
{
2828
for(BarcodeResultItem item:result.getItems())
2929
{
30-
30+
String barcodeText = barcodeResultItem.getText();
31+
String barcodeFormatString = barcodeResultItem.getFormatString();
3132
}
3233
}
3334
}

programming/objectivec-swift/user-guide/understand-barcode-results.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ It contains:
2929
{
3030
if (result.items.count != 0)
3131
{
32-
for (DSBarcodeResultItem *item in result.items)
33-
{
34-
35-
}
32+
for (DSBarcodeResultItem *item in result.items)
33+
{
34+
NSString *barcodeText = barcodeResultItem.text;
35+
NSString *barcodeFormatString = barcodeResultItem.formatString;
36+
}
3637
}
3738
}
3839
```
3940
2.
4041
```swift
4142
func onDecodedBarcodesReceived(_ result: DecodedBarcodesResult) {
4243
if let items = result.items, !items.isEmpty {
43-
for item in items {
44-
45-
}
44+
for item in items {
45+
let barcodeText = barcodeResultItem.text
46+
let barcodeFormatString = barcodeResultItem.formatString
47+
}
4648
}
4749
}
4850
```

0 commit comments

Comments
 (0)