Barcode Count Deserializer

Defined in package com.scandit.datacapture.barcode.count.serialization

Warning

The deserialization API is not yet stable and will still change over the coming releases.

Note

This deserializer is not thread-safe, subsequent calls for the same settings, mode or overlay have to be called on the same thread.

BarcodeCountDeserializer
class BarcodeCountDeserializer : DataCaptureModeDeserializer

Added in version 6.16.0

A deserializer to construct barcode count settings from JSON.

BarcodeCountDeserializer()
BarcodeCountDeserializer()

Added in version 6.16.0

Creates a new deserializer object.

createRecommendedCameraSettings()
fun createRecommendedCameraSettings(): CameraSettings

Added in version 6.17.0

Constructs a CameraSettings object with the recommended settings for Barcode Count.

settingsFromJson(json)
fun settingsFromJson(json: String): BarcodeCountSettings

Added in version 6.16.0

Constructs a new barcode count settings object with the provided JSON serialization.

updateSettingsFromJson(settings, json)
fun updateSettingsFromJson(settings: BarcodeCountSettings,
        json: String): BarcodeCountSettings

Added in version 6.16.0

Updates the settings according to a JSON serialization.

modeFromJson(dataCaptureContext, json)
fun modeFromJson(dataCaptureContext: DataCaptureContext,
        json: String): BarcodeCount

Added in version 6.17.0

Constructs a new barcode count object with the provided JSON serialization.

updateModeFromJson(mode, json)
fun updateModeFromJson(mode: BarcodeCount,
        json: String): BarcodeCount

Added in version 6.17.0

Updates the mode according to a JSON serialization.

warnings
val warnings: List<String>

Added in version 6.17.0

The warnings produced during deserialization, for example which properties were not used during deserialization.