Scanner - Scan QR and barcodes with camera view, laser line, flashlight, and scan with front camera.

Scanner
Scan QR and barcodes with camera view, laser line, flashlight, and scan with front camera.

Flashlight:
GIF_20250712_042811_799

Front and Back Camera Scanner:
GIF_20250712_041658_783


For the scanner to work, you'll need to add the BarcodeScanner component, which comes built into App Inventor, to your design area.

BarcodeScanner

This is in order to integrate the library that comes with that component.


TargetArrangement

Sets the HVArrangement where the camera view will be displayed.


ScanFromContentUri

Scan a QR or barcode from a content URI.


TurnFlashOn

Turn on the camera flash

component_method (1)


TurnFlashOff

Turn off the camera flash

component_method


ToggleFlash

Toggles the flash state (on/off)

component_method (2)


StartScanning

Manually start QR code scanning.

component_method (4)


StopScanning

Stops code scanning.

component_method (3)


RemoveScanner

Removes the camera view from the arrangement.

component_method (5)


UseFrontCamera

Sets whether to use the front camera for scanning.


UseFrontCamera

Indicates whether the front camera is being used.

component_set_get


FlashOn

Indicates whether the flash is on

component_set_get (1)


LaserColor

Laser line color.


LaserHeight

Laser line thickness.


LaserSpeed

Laser movement speed.


ScanningEnabled

Enable or disable continuous QR code scanning.


ScanInterval

Scan interval in milliseconds.


ScanSuccess

Fires when a code is successfully scanned.

component_event (1)


OnScanError

component_event (2)


v1.0 July 12, 2025.

Scanner.aia (38.0 KB)

joejsanz.joedevscanner.aix (15.5 KB)


JDK: 11
Minimum API Level: 21
Updated On: 2025-07-12T07:00:00Z

Built using: FAST-CLI v3.8.1-premium


Thanks.

6 Likes

thank you @Joejsanz

Another great extension, very useful! Honestly, you really know how to solve people's problems.

Well done @Joejsanz :clap: :partying_face: :100:

Nico