cover

Enable MultiScan on Android

What is Batch MultiScan for Android? #

Batch MultiScan is a feature of the barKoder Barcode Scanner SDK that enables batch scanning of multiple barcodes without interrupting the scanning process. It allows users to decode various types and sizes of barcodes in a single session, greatly enhancing efficiency for bulk scanning tasks.  

This feature is available on the Android native platform and can be enabled within applications that employ the 🤖 Android SDK.

How to enable it?#

This is done by disabling the automatic closing of the scanning session after a result is obtained. The feature also includes an option to set a caching duration for the codes scanned and the ability to enable multi-code caching. The duplicates delay and maximum results count can also be adjusted. For best results, it is recommended to have the decoding speed and barKoder resolution set to normal.

                private fun setMultiScan() {
    //In order to perform scanning, config property need to be set before
    // If license key is not valid you will receive results with asterisks inside
    bkdView.config = BarkoderConfig(this, "LICENSE_KEY") {
        Log.i("Licensing SDK: ", it.message)
    }

    // Enabling MultiScan
   
    bkdView.config.isCloseSessionOnResultEnabled = false
    BarkoderConfig.SetMulticodeCachingEnabled(true)
    BarkoderConfig.SetMulticodeCachingDuration(3000)
    bkdView.config.decoderConfig.duplicatesDelayMs = 0
    bkdView.config.decoderConfig.maximumResultsCount = 200

    // For best result decoding speed should be normal, and barkoder resolution should be normal
    bkdView.config.decoderConfig.decodingSpeed = Barkoder.DecodingSpeed.Normal
    bkdView.config.barkoderResolution = BarkoderResolution.NORMAL

}
            
If you don't plan to use the app on older devices, you can safely set the decoding speed to SLOW. This will yield more reliable results. On modern phones, the slight decrease in speed is negligible compared to the improved reliability.  

Page Contents

History:

close