getScanTypeFormat function
Implementation
ScanTypeFormat getScanTypeFormat(int type) {
switch (type) {
case 1:
return ScanTypeFormat.QRCODE_SCAN_TYPE;
case 2:
return ScanTypeFormat.AZTEC_SCAN_TYPE;
case 4:
return ScanTypeFormat.DATAMATRIX_SCAN_TYPE;
case 8:
return ScanTypeFormat.PDF417_SCAN_TYPE;
case 16:
return ScanTypeFormat.CODE39_SCAN_TYPE;
case 32:
return ScanTypeFormat.CODE93_SCAN_TYPE;
case 64:
return ScanTypeFormat.CODE128_SCAN_TYPE;
case 128:
return ScanTypeFormat.EAN13_SCAN_TYPE;
case 256:
return ScanTypeFormat.EAN8_SCAN_TYPE;
case 512:
return ScanTypeFormat.ITF14_SCAN_TYPE;
case 1024:
return ScanTypeFormat.UPCCODE_A_SCAN_TYPE;
case 2048:
return ScanTypeFormat.UPCCODE_E_SCAN_TYPE;
case 4096:
return ScanTypeFormat.CODABAR_SCAN_TYPE;
default:
return ScanTypeFormat.FORMAT_UNKNOWN;
}
}