barcode-scanner
barcode-scanner copied to clipboard
Detect supported platform.
Is your feature request related to a problem? Please describe. Our app could be used on old or strange devices without camera or supported API. It his situations app should hide reader feature.
Describe the solution you'd like
I would like to use method like isSupported(): boolean
. This should not trigger permission dialog.
Describe alternatives you've considered I could dive into APIs behind this plugin and try to check it for every platform, but I am not sure how difficult it will be and if I will cover it correctly.
I am not sure if isSupported
is the right term in this case. Maybe it would make sense to somehow implement something like getCameras
and even allow the devs to set a specific camera if required.
But I need to check if this is even possible if you have no permission, not sure about this to be honest...