public abstract class BarcodeReaderInputData
extends java.lang.Object
implements android.os.Parcelable
Example for a EAN/UPC/I25 barcode reader with a 640x480 preview size and a time out delay of 30s
IBarcodeReader
barcodeReader = BarcodeReader.getInstance(context);BarcodeReaderInputData
inputData =BarcodeReaderInputData
.builder() .setCameraType(CameraTypes
.FRONT) .setBarcodeSymbols(Arrays
.asList(BarcodeSymbols
.EAN,BarcodeSymbols
.UPC,BarcodeSymbols
.I25)) .setPreviewWidth(640) .setPreviewHeight(480) .setCaptureWidth(640) .setCaptureHeight(480) .setTimeOut(30) .build(); barcodeReader.start(inputData);
Default values:
- Front camera type
- No time out
- Barcode symbols: AZTEC, CODABAR, C128, C39, C93, I25, PDF417, QR_CODE, RSS, S25, EAN and
UPC
Modifier and Type | Class and Description |
---|---|
static class |
BarcodeReaderInputData.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BarcodeReaderInputData> |
CREATOR |
Constructor and Description |
---|
BarcodeReaderInputData() |
Modifier and Type | Method and Description |
---|---|
static BarcodeReaderInputData.Builder |
builder() |
abstract java.util.List<java.lang.Integer> |
getBarcodeSymbols()
Symbols to decode for barcode reader.
|
abstract java.lang.Integer |
getCameraType()
Field specifying the camera to use (front, back, ...).
|
abstract java.lang.Integer |
getCaptureHeight()
Field specifying the capture height to decode.
|
abstract java.lang.Integer |
getCaptureWidth()
Field specifying the capture width to decode.
|
abstract java.lang.Integer |
getPreviewHeight()
Field specifying the camera preview height.
|
abstract java.lang.Integer |
getPreviewWidth()
Field specifying the camera preview width.
|
abstract java.lang.Integer |
getTimeOut()
Field specifying the time out delay to read a barcode (in sec).
|
public static final android.os.Parcelable.Creator<BarcodeReaderInputData> CREATOR
public abstract java.lang.Integer getCameraType()
CameraTypes for predefined values
public abstract java.lang.Integer getPreviewWidth()
public abstract java.lang.Integer getPreviewHeight()
public abstract java.lang.Integer getTimeOut()
public abstract java.util.List<java.lang.Integer> getBarcodeSymbols()
BarcodeSymbols for predefined values
public abstract java.lang.Integer getCaptureWidth()
public abstract java.lang.Integer getCaptureHeight()
public static BarcodeReaderInputData.Builder builder()