public interface ScanResult
Callback for the code scanner indicating the result of a scan operation, the methods of this call will always be invoked on the EDT!
Modifier and Type | Method and Description |
---|---|
void |
scanCanceled()
Deprecated.
Invoked if the user canceled the scan
|
void |
scanCompleted(String contents,
String formatName,
byte[] rawBytes)
Deprecated.
Called upon a successful scan operation
|
void |
scanError(int errorCode,
String message)
Deprecated.
Invoked if an error occurred during the scanning process
|
void scanCompleted(String contents, String formatName, byte[] rawBytes)
contents
- the contents of the dataformatName
- the format of the scanrawBytes
- the bytes of datavoid scanCanceled()
void scanError(int errorCode, String message)
errorCode
- codemessage
- descriptive message