public static interface BarCodeReader.DecodeCallback
限定符和类型 | 方法和说明 |
---|---|
void |
onDecodeComplete(int symbology,
int length,
byte[] data,
BarCodeReader reader)
Called when a decode operation has completed, either due to a timeout,
a successful decode or canceled by the user.
|
void |
onEvent(int event,
int info,
byte[] data,
BarCodeReader reader)
Called to indicate that the decoder detected an event such as MOTION DECTECTED.
|
void onDecodeComplete(int symbology, int length, byte[] data, BarCodeReader reader)
BarCodeReader.open(int)
was called from.symbology
- the symbology of decoded bar code if anystatus
- if positive, indicates the length of the bar code data,
otherwise, DECODE_STATUS_TIMEOUT if the request timed out or
DECODE_STATUS_CANCELED if stopDecode() is called before a successful
decode or timeout.data
- the contents of the decoded bar codereader
- the BarCodeUtils service object.void onEvent(int event, int info, byte[] data, BarCodeReader reader)
BarCodeReader.open(int)
was called from.event
- the type of event that has occurredinfo
- additional event information, if any, else zerodata
- data associated with the event, if any, else nullreader
- the BarCodeUtils service object.