public static interface BarCodeReader.PreviewCallback
Modifier and Type | Method and Description |
---|---|
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 android.graphics.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 BarCodeReader service object.