public interface ScanResult
Modifier and Type | Method and Description |
---|---|
void |
scanCanceled()
Invoked if the user canceled the scan
|
void |
scanCompleted(String contents,
String formatName,
byte[] rawBytes)
Called upon a successful scan operation
|
void |
scanError(int errorCode,
String message)
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