TextResultListener
TextResultListener
is the interface to handle callbacks when the barcode results are returned.
interface com.dynamsoft.dbr.TextResultListener
Method | Description |
---|---|
textResultCallback |
Represents the method to handle the text result array returned by the library. |
textResultCallback
Represents the method to handle the text result array returned by the library.
void textResultCallback(int frameId, ImageData imageData, TextResult[] results);
Parameters
frameId
: The ID of the frame.
imageData
: The image data of the frame.
results
: Recognized barcode results of the frame.
Code Snippet
Code Snippet
You have to either use CameraEnhacner
or ImageSource
as the source of video streaming to receive barcode results from textResultCallback
.
- View code snippet for how to decode with
CameraEnhancer
- View code snippet for how to decode with
ImageSource