How to increase scanning area size in zxing

前端 未结 4 669
遥遥无期
遥遥无期 2020-12-06 14:16

Hii everyone currently iam working on scanning qr code from my app and i have used zxing library and it\'s working good and my problem is in my galaxy s4 mobile the scanni

4条回答
  •  时光说笑
    2020-12-06 14:50

    If you are calling this from another android app, use intent extras SCAN_WIDTH and SCAN_HEIGHT for this.

    If you happen to be using phonegap-plugin-barcodescanner (3.0.0 or later), then passing the same intents like xxxxx.scan(onSuccessFunc,onFailFunc,{SCAN_HEIGHT:111,SCAN_WIDTH:222}) will produce the same result. 111 being the height, and 222 being the width.

提交回复
热议问题