public interface ScanResult
Deprecated!!: Please use the cn1-codescan library instead.
Callback for the code scanner indicating the result of a scan operation, the methods of this call will always be invoked on the EDT!
Methods
public abstract void scanCompleted(String contents, String formatName, byte[] rawBytes) | Called upon a successful scan operation |
public abstract void scanCanceled() | Invoked if the user canceled the scan |
public abstract void scanError(int errorCode, String message) | Invoked if an error occurred during the scanning process |
Method details
scanCompleted
public abstract void scanCompleted(String contents, String formatName, byte[] rawBytes)Called upon a successful scan operation
Parameters
contentsString- the contents of the data
formatNameString- the format of the scan
rawBytesbyte[]- the bytes of data
scanCanceled
public abstract void scanCanceled()Invoked if the user canceled the scan
scanError
public abstract void scanError(int errorCode, String message)Invoked if an error occurred during the scanning process
Parameters
errorCodeint- code
messageString- descriptive message