Barcode AR Deserializer

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

BarcodeArDeserializerListener
interface BarcodeArDeserializerListener

Added in version 7.1.0

The listener for the BarcodeAr deserializer.

onModeDeserializationStarted(deserializer, mode, json)
fun onModeDeserializationStarted(deserializer: BarcodeArDeserializer,
        mode: BarcodeAr,
        json: JsonValue)

Added in version 7.1.0

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

onModeDeserializationFinished(deserializer, mode, json)
fun onModeDeserializationFinished(deserializer: BarcodeArDeserializer,
        mode: BarcodeAr,
        json: JsonValue)

Added in version 7.1.0

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

onSettingsDeserializationStarted(deserializer, settings, json)
fun onSettingsDeserializationStarted(deserializer: BarcodeArDeserializer,
        settings: BarcodeArSettings,
        json: JsonValue)

Added in version 7.1.0

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

onSettingsDeserializationFinished(deserializer, settings, json)
fun onSettingsDeserializationFinished(deserializer: BarcodeArDeserializer,
        settings: BarcodeArSettings,
        json: JsonValue)

Added in version 7.1.0

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

BarcodeArDeserializer
class BarcodeArDeserializer

Added in version 7.1.0

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

BarcodeArDeserializer()
BarcodeArDeserializer()

Added in version 7.1.0

Creates a new deserializer object.

settingsFromJson(json)
fun settingsFromJson(json: String): BarcodeArSettings

Added in version 7.1.0

Constructs a new BarcodeArSettings object with the provided JSON serialization.

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

Added in version 7.1.0

Updates the settings according to a JSON serialization.

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

Added in version 7.1.0

Constructs a new BarcodeAr object with the provided JSON serialization.

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

Added in version 7.1.0

Updates the mode according to a JSON serialization.

feedbackFromJson(json)
fun feedbackFromJson(json: String): BarcodeArFeedback

Added in version 7.1.0

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

listener
var listener: BarcodeArDeserializerListener?

Added in version 7.1.0

The object informed about deserialization events.