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
}
};