2016-07-20 25 views

回答

0

圖書館工作正常,只有我們需要在橫向模式下掃描條形碼。

0

必須設置在構建語句Bacode格式一個接一個,

下面是支持的格式

BarcodeFormat.UPC_A 
    BarcodeFormat.UPC_E 
    BarcodeFormat.EAN_13 
    BarcodeFormat.EAN_8 
    BarcodeFormat.RSS_14 
    BarcodeFormat.CODE_39 
    BarcodeFormat.CODE_93 
    BarcodeFormat.CODE_128 
    BarcodeFormat.ITF 
    BarcodeFormat.CODABAR 
    BarcodeFormat.QR_CODE 
    BarcodeFormat.DATA_MATRIX 
    BarcodeFormat.PDF_417 

像下面的例子

mReactInstanceManager = ReactInstanceManager.builder() 
    .setApplication(getApplication()) 
    .setBundleAssetName("index.android.bundle") 
    .setJSMainModuleName("index.android") 
    .setFormats(BarcodeFormat.UPC_A) 
    .setFormats(BarcodeFormat.EAN_13) 
    .setFormats(BarcodeFormat.CODE_93) 
    .setFormats(BarcodeFormat.CODE_128) 
    .addPackage(new MainReactPackage()) 
    .addPackage(new RNCameraViewPackage())    // <------ add here 
    .setUseDeveloperSupport(BuildConfig.DEBUG) 
    .setInitialLifecycleState(LifecycleState.RESUMED) 
    .build(); 
+0

請問您能指導更多?哪個文件? – ARWIN

+0

在掃描活動 使用的庫的主Java類 –