Dev Center
Table of contents

Interfaces

Interface Description
ErrorCallback Represents the method that will handle the error code returned by the SDK.
IntermediateResultCallback Represents the method that will handle the intermediate result array returned by the SDK.
TextResultCallback Represents the method that will handle the text result array returned by the SDK.

ErrorCallback

Represents the method that will handle the error code returned by the SDK.

void com.dynamsoft.dbr.ErrorCallback.errorCallback(int frameId, int errorCode, Object userData)	

Parameters
frameId The ID of the frame.
errorCode Error Code generated when decoding the frame. userData Arguments passed to your function.

IntermediateResultCallback

Represents the method that will handle the intermediate result array returned by the SDK.

void com.dynamsoft.dbr.IntermediateResultCallback.intermediateResultCallback(int frameId, IntermediateResult[] results, Object userData)	

Parameters
frameId The ID of the frame.
results The intermediate results of the frame.
userData Arguments passed to your function.

See Also
IntermediateResult

TextResultCallback

Interface to handle callbacks when the text result array returned by the SDK.

public interface TextResultCallback {
    void textResultCallback(int id, TextResult[] results, Object userData);
    void uniqueBarcodeCallback(int id, TextResult[] results, Object userData);
}

textResultCallback

The method will be triggered when the library finishes decoding a frame.

void textResultCallback(int id, TextResult[] results, Object userData);

Parameters
id The ID of the frame.
results Recognized barcode results of the frame. userData Arguments passed to your function.

See Also
TextResult

uniqueBarcodeCallback

The method will be triggered when the library finishes decoding a frame and finds unique barcodes.

void uniqueBarcodeCallback(int id, TextResult[] results, Object userData);

Parameters
id The ID of the frame.
results Recognized unique barcode results of the frame. userData Arguments passed to your function.

See Also
TextResult
FrameDecodingParameters.duplicateForgetTime

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

latest version

  • Latest version
  • Version 10.x
    • Version 10.2.0
    • Version 10.0.20
    • Version 10.0.10
    • Version 10.0.0
  • Version 9.x
    • Version 9.6.40
    • Version 9.6.30
    • Version 9.6.20
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.0
    • Version 9.0.0
  • Version 8.x
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
  • Version 7.x
    • Version 7.6.0
    • Version 7.5.0
Change +