startScan method

Future<int> startScan({
  1. int scanTypes = scanTypeAll,
})

华为ScanKit支持扫描13种全球主流的码制式,已支持的码制式:

一维码:EAN-8、EAN-13、UPC-A、UPC-E、Codabar、Code 39、Code 93、Code 128、ITF 二维码:QR Code、Data Matrix、PDF417、Aztec

scanTypes 指定扫描的类型,可指定多种,见 ScanTypes

Implementation

Future<int> startScan({int scanTypes = scanTypeAll}) async {
  var id = await _defaultModeId.future;
  final int result = await _api.startScan(id, scanTypes, options);
  return result;
}