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)
void onModeDeserializationStarted(@NonNull BarcodeArDeserializer deserializer,
        @NonNull BarcodeAr mode,
        @NonNull JsonValue json)

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)
void onModeDeserializationFinished(@NonNull BarcodeArDeserializer deserializer,
        @NonNull BarcodeAr mode,
        @NonNull JsonValue json)

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)
void onSettingsDeserializationStarted(@NonNull BarcodeArDeserializer deserializer,
        @NonNull BarcodeArSettings settings,
        @NonNull JsonValue json)

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)
void onSettingsDeserializationFinished(@NonNull BarcodeArDeserializer deserializer,
        @NonNull BarcodeArSettings settings,
        @NonNull JsonValue json)

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)
@NonNull BarcodeArSettings settingsFromJson(@NonNull String json)

Added in version 7.1.0

Constructs a new BarcodeArSettings object with the provided JSON serialization.

updateSettingsFromJson(settings, json)
@NonNull BarcodeArSettings updateSettingsFromJson(@NonNull BarcodeArSettings settings,
        @NonNull String json)

Added in version 7.1.0

Updates the settings according to a JSON serialization.

modeFromJson(dataCaptureContext, json)
@NonNull BarcodeAr modeFromJson(@NonNull DataCaptureContext dataCaptureContext,
        @NonNull String json)

Added in version 7.1.0

Constructs a new BarcodeAr object with the provided JSON serialization.

updateModeFromJson(mode, json)
@NonNull BarcodeAr updateModeFromJson(@NonNull BarcodeAr mode,
        @NonNull String json)

Added in version 7.1.0

Updates the mode according to a JSON serialization.

feedbackFromJson(json)
@NonNull BarcodeArFeedback feedbackFromJson(@NonNull String json)

Added in version 7.1.0

Constructs a new barcode ar feedback object with the provided JSON serialization.

listener
@Nullable BarcodeArDeserializerListener getListener()
void setListener(@Nullable BarcodeArDeserializerListener value)

Added in version 7.1.0

The object informed about deserialization events.