A simple Barcode/QR-Code Reader inside an AlertDialog
BarcodeScanner
This is a simple Barcode/QR-Code Reader inside an AlertDialog. Based on the Google ML-Kit with the new CameraX. Based on the Android Playground.
Create an instance of the BarcodeScannerDialog and receive fast barcode recognition.
BarcodeScannerDialog(this) { Toast.makeText(this, it, Toast.LENGTH_SHORT).show() }
Small, Simple and easy to use.
To add this library:
build.gradle (top-level) or settings.gradle: repositories { … maven { url ‘https://jitpack.io‘ } }
build.gradle app: implementation ‘com.github.nexus421:BarcodeScanner:1.0.1’