Deprecation warning
Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.
We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.
You'll find the updated documentation at: Data Capture SDK Documentation for Android
Public Member Functions | |
View | getViewForCode (TrackedBarcode barcode, long trackingId) |
Point | getOffsetForCode (TrackedBarcode barcode, long trackingId) |
void | onCodeTouched (TrackedBarcode barcode, long trackingId) |
Detailed Description
Interface that can be used to set a onCodeTouched action or to set a custom offset for every tracked barcode or to define a custom view for every barcode.
- Since
- 5.9.0
Member Function Documentation
View getViewForCode | ( | TrackedBarcode | barcode, |
long | trackingId | ||
) |
Interface method that will be used by the ViewBasedMatrixScanOverlay to set a View for the augmentation corresponding to the given tracked barcode.
- Parameters
-
barcode A com.scandit.recognition.TrackedBarcode instance. trackingId Barcode identifier.
- Returns
- View for the given barcode.
- Since
- 5.9.0
Point getOffsetForCode | ( | TrackedBarcode | barcode, |
long | trackingId | ||
) |
Interface method that will be used by the ViewBasedMatrixScanOverlay to set an offset to the augmentation corresponding to the given tracked barcode.
- Parameters
-
barcode A com.scandit.recognition.TrackedBarcode instance. trackingId Barcode identifier.
- Returns
- Offset for the given barcode.
- Since
- 5.9.0
void onCodeTouched | ( | TrackedBarcode | barcode, |
long | trackingId | ||
) |
Interface callback method that will be called by the ViewBasedMatrixScanOverlay once the given tracked barcode is touched.
- Parameters
-
barcode A com.scandit.recognition.TrackedBarcode instance. trackingId Barcode identifier.
- Since
- 5.9.0
The documentation for this interface was generated from the following file:
- ViewBasedMatrixScanOverlay.java