【问题标题】:How to configure the scanner to scan more than one barcode at a time?如何配置扫描仪一次扫描多个条码?
【发布时间】:2019-10-25 15:08:52
【问题描述】:

我正在为 Zebra 设备创建一个应用程序,并且希望一次读取多个条形码。我找不到 EMDK 的正确配置来实现这一点。

我找到了这个链接,但我找不到设置值的方法...

https://techdocs.zebra.com/emdk-for-android/6-8/api/reference/com/symbol/emdk/barcode/ScannerConfig.ScanMode.html

【问题讨论】:

标签: c# xamarin.android barcode-scanner


【解决方案1】:

有一个来自 Zebra 的示例显示了如何执行此操作:https://github.com/Zebra/samples-emdkforandroid-7_3/tree/master/MultiBarcodeSample1

该示例中配置多条码的相关代码如下:

ScannerConfig config = scanner.getConfig();
// Scan Mode set to Multi Barcode
// If it is a imager
config.readerParams.readerSpecific.imagerSpecific.scanMode = ScannerConfig.ScanMode.MULTI_BARCODE;
// If it is a camera
config.readerParams.readerSpecific.cameraSpecific.scanMode = ScannerConfig.ScanMode.MULTI_BARCODE;
// Setting the barcode count
if(barcodeCount.getText().toString().length() > 0) {
  config.multiBarcodeParams.barcodeCount = Integer.parseInt(barcodeCount.getText().toString());
}
scanner.setConfig(config);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-03
    • 2018-07-05
    相关资源
    最近更新 更多