public static interface BarCodeReader.PreviewCallback
限定符和类型 | 方法和说明 |
---|---|
void |
onPreviewFrame(byte[] data,
BarCodeReader reader)
Called as preview frames are displayed.
|
void onPreviewFrame(byte[] data, BarCodeReader reader)
BarCodeReader.open(int)
was called from.data
- the contents of the preview frame in the format defined
by ImageFormat
, which can be queried
with BarCodeReader.Parameters.getPreviewFormat()
.
If BarCodeReader.Parameters.setPreviewFormat(int)
is never called, the default will be the YCbCr_420_SP (NV21) format.reader
- the BarCodeUtils service object.