layout | title | description | keywords | needAutoGenerateSidebar | needGenerateH3Content | noTitleIndex | permalink |
---|---|---|---|---|---|---|---|
default-layout |
Interface TextResultListener - Dynamsoft Barcode Reader Android API Reference |
This the interface TextResultListener page of Dynamsoft Barcode Reader for Android SDK. |
TextResultListener, interface, android |
true |
false |
true |
/programming/android/api-reference/interface-textresultcallback-v9.6.20.html |
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. |
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