Customisations
How to reduce the barcode formats
By default, the Barcode scanner SDK allows all the barcode formats. If you need to exclude some barcode formats or you only want to support a specific one (reducing the number of supported formats will make the barcode scanner faster), you need to:
- Create a class that implements
GetGmsBarcodeScannerOptions
. - On the
invoke()
method, specify the supported barcode formats usingGmsBarcodeScannerOptions.Builder().setBarcodeFormats()
. - Provide your new implementation via Koin replacing the default SDK implementation.