Barcode Batch

Defined in package com.scandit.datacapture.barcode.batch.capture

BarcodeBatch
class BarcodeBatch : DataCaptureMode

Added in version 6.0.0

Data capture mode that implements MatrixScan (Barcode Batch).

Learn more on how to use Barcode Batch in our Get Started guide.

forDataCaptureContext(dataCaptureContext, settings)
fun BarcodeBatch.forDataCaptureContext(dataCaptureContext: DataCaptureContext?,
        settings: BarcodeBatchSettings): BarcodeBatch

Added in version 7.0.0

Constructs a new Barcode Batch mode with the provided context and settings. When the context is not null, the capture mode is automatically added to the context.

fromJson(dataCaptureContext, jsonData)
fun BarcodeBatch.fromJson(dataCaptureContext: DataCaptureContext,
        jsonData: String): BarcodeBatch

Added in version 7.0.0

Constructs a new Barcode Batch mode with the provided JSON serialization. The capture mode is automatically added to the context.

isEnabled
var isEnabled: Boolean

Added in version 7.0.0

Implemented from DataCaptureMode. See DataCaptureMode.isEnabled.

applySettings(settings, whenDone)
fun applySettings(settings: BarcodeBatchSettings, whenDone: Runnable?)

Added in version 7.0.0

Asynchronously applies the new settings to the barcode scanner. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.

applySettings(settings)
fun applySettings(settings: BarcodeBatchSettings)

Added in version 7.0.0

Same as applySettings() with the second argument set to null.

addListener(listener)
fun addListener(listener: BarcodeBatchListener)

Added in version 7.0.0

Adds the listener to observe this barcode capture instance.

In case the same listener is already observing this instance, calling this method will not add the listener again.

removeListener(listener)
fun removeListener(listener: BarcodeBatchListener)

Added in version 7.0.0

Removes a previously added listener from this Barcode Batch instance.

In case the listener is not currently observing this instance, calling this method has no effect.

createRecommendedCameraSettings()
fun BarcodeBatch.createRecommendedCameraSettings(): CameraSettings

Added in version 7.0.0

Returns the recommended camera settings for use with Barcode Batch.

dataCaptureContext
val dataCaptureContext: DataCaptureContext?

Added in version 7.0.0

Implemented from DataCaptureMode. See DataCaptureMode.dataCaptureContext.

updateFromJson(jsonData)
fun updateFromJson(jsonData: String)

Added in version 7.0.0

Updates the mode according to a JSON serialization.

barcodeBatchLicenseInfo
val barcodeBatchLicenseInfo: BarcodeBatchLicenseInfo?

Added in version 7.0.0

The object containing information about Barcode Batch licensing.

Note

This value is available with a small delay. To make sure it is available, set a DataCaptureContextListener and, as soon as DataCaptureContextListener.onModeAdded() is called, this license object is available.

reset()
fun reset()

Added in version 7.0.0

Resets the object tracker.