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

contents String
the contents of the data
formatName String
the format of the scan
rawBytes byte[]
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

errorCode int
code
message String
descriptive message