BarcodeScanner

Last Updated On 2021-07-16

Version 2MinSDK 7Tutorial Video

Component for using the Barcode Scanner to read a barcode


Properties

You can set the below properties in the UI part of the builder.

  • UseExternalScanner - it's a boolean value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

Result

Text result of the previous scan.


UseExternalScanner

If true App Inventor will look for and use an external scanning program such as "Bar Code Scanner."



Methods

You can set the below method blocks in the blocks section of the builder.

DoScan

Begins a barcode scan, using the camera. When the scan is complete, the AfterScan event will be raised.


Events

You can set the below event blocks in the blocks section of the builder.

AfterScan

Indicates that the scanner has read a (text) result and provides the result