Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.35 KB

interface-errorcallback-v8.9.3.md

File metadata and controls

49 lines (38 loc) · 1.35 KB
layout title description keywords needAutoGenerateSidebar needGenerateH3Content noTitleIndex permalink
default-layout
Interface ErrorCallback - Dynamsoft Barcode Reader Android API Reference
This is the interface ErrorCallback page of Dynamsoft Barcode Reader for Android SDK.
ErrorCallback, interface, android
true
false
true
/programming/android/api-reference/interface-errorcallback-v8.9.3.html

ErrorCallback

ErrorCallback is the interface to handle callback when an error is returned when using video frame decoding.

Note:

  • This class is removed in 9.0 version. Please use the video methods for video barcode scanning if you are using the latest version.
interface com.dynamsoft.dbr.ErrorCallback
Method Description
errorCallback Represents the method to handle the error code returned by the library.

errorCallback

void 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.

Code Snippet

ErrorCallback errorCallback = new ErrorCallback() {
    @Override
    public void errorCallback(int frameID, int errorCode, Object userData) {
        //Add your code     
    }
};