Hello! I am trying to implement QR scanner with `a...
# compose-android
m
Hello! I am trying to implement QR scanner with
androidx.camera:camera-compose
and MLKit does anyone have some working example? I don't want to use
AndroidView
. Is it even possible?
m
Have you tried any of the many QR-Code scanner libraries already? E.g., https://github.com/kalinjul/EasyQRScan
m
@Michael Paus I tried this one but it does not meet the requirement of not using
AndroidView
(https://github.com/kalinjul/EasyQRScan/blob/main/scanner/src/androidMain/kotlin/ScannerView.kt) Found this piece of documentation very helpful, I will try to go that route https://developer.android.com/media/camera/camerax/analyze Thank you for helping ! 🙏
j
Why the requirement of not using
AndroidView
?
k
I do have working camera with Compose and barcode scanner, I can share some code snippets, hit DM if interested
c
I did this like 3 times in the past 6 months and i dont remember how we implemented it. lol. i do think we might have used AndroidView though. https://medium.com/androiddevelopers/getting-started-with-camerax-in-jetpack-compose-781c722ca0c4 is definitely an article i referenced tho