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 | |
int | getColorForCode (TrackedBarcode barcode, long trackingId) |
void | onCodeTouched (TrackedBarcode barcode, long trackingId) |
Detailed Description
Interface that can be used to set a onCodeTouched action or define a custom augmentation color for every tracked barcode.
- Since
- 5.9.0
Member Function Documentation
int getColorForCode | ( | TrackedBarcode | barcode, |
long | trackingId | ||
) |
Interface method that will be used by the SimpleMatrixScanOverlay to set a color of the augmentation corresponding to the given tracked barcode.
- Parameters
-
barcode A com.scandit.recognition.TrackedBarcode instance. trackingId Barcode identifier.
- Returns
- Color to be used by the augmentation for the given barcode.
- Since
- 5.9.0
void onCodeTouched | ( | TrackedBarcode | barcode, |
long | trackingId | ||
) |
Interface callback method that will be called by the SimpleMatrixScanOverlay 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:
- SimpleMatrixScanOverlay.java