Barcode Sequence Deserializer

Defined in package com.scandit.datacapture.barcode.sequence.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.

BarcodeSequenceDeserializerListener
interface BarcodeSequenceDeserializerListener

Added in version 8.6.0

The listener for the BarcodeSequence deserializer.

onModeDeserializationStarted(deserializer, mode, json)
fun onModeDeserializationStarted(deserializer: BarcodeSequenceDeserializer,
        mode: BarcodeSequence,
        json: JsonValue)

Added in version 8.6.0

Called before the deserialization of BarcodeSequence is started. This is the point to overwrite defaults before the deserialization is performed.

onModeDeserializationFinished(deserializer, mode, json)
fun onModeDeserializationFinished(deserializer: BarcodeSequenceDeserializer,
        mode: BarcodeSequence,
        json: JsonValue)

Added in version 8.6.0

Called when the deserialization of BarcodeSequence is finished. This is the point to do additional deserialization.

onSettingsDeserializationStarted(deserializer, settings, json)
fun onSettingsDeserializationStarted(deserializer: BarcodeSequenceDeserializer,
        settings: BarcodeSequenceSettings,
        json: JsonValue)

Added in version 8.6.0

Called before the deserialization of the BarcodeSequence settings is started. This is the point to overwrite defaults before the deserialization is performed.

onSettingsDeserializationFinished(deserializer, settings, json)
fun onSettingsDeserializationFinished(deserializer: BarcodeSequenceDeserializer,
        settings: BarcodeSequenceSettings,
        json: JsonValue)

Added in version 8.6.0

Called when the deserialization of the BarcodeSequence settings is finished. This is the point to do additional deserialization.

BarcodeSequenceDeserializer
class BarcodeSequenceDeserializer

Added in version 8.6.0

A deserializer to construct Barcode Sequence settings and mode from JSON.

BarcodeSequenceDeserializer()
BarcodeSequenceDeserializer()

Added in version 8.6.0

Creates a new deserializer object.

settingsFromJson(json)
fun settingsFromJson(json: String): BarcodeSequenceSettings

Added in version 8.6.0

Constructs a new BarcodeSequenceSettings object with the provided JSON serialization.

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

Added in version 8.6.0

Updates the settings according to a JSON serialization.

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

Added in version 8.6.0

Constructs a new BarcodeSequence object with the provided JSON serialization.

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

Added in version 8.6.0

Updates the mode according to a JSON serialization.

feedbackFromJson(json)
fun feedbackFromJson(json: String): BarcodeSequenceFeedback

Added in version 8.6.0

Constructs a new Barcode Sequence feedback object with the provided JSON serialization.

listener
var listener: BarcodeSequenceDeserializerListener?

Added in version 8.6.0

The object informed about deserialization events.