Barcode Pick Deserializer

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

BarcodePickDeserializer
class BarcodePickDeserializer

Added in version 6.19.0

A deserializer to construct barcode pick settings and mode from JSON.

Related topics: Serialization.

BarcodePickDeserializer()
BarcodePickDeserializer()

Added in version 6.19.0

Creates a new deserializer object.

settingsFromJson(json)
@NonNull BarcodePickSettings settingsFromJson(@NonNull String json)

Added in version 6.19.0

Constructs a new BarcodePickSettings object with the provided JSON serialization.

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

Added in version 6.19.0

Updates the settings according to a JSON serialization.

modeFromJson(dataCaptureContext, productProvider, json)
@NonNull BarcodePick modeFromJson(@NonNull DataCaptureContext dataCaptureContext,
        @NonNull BarcodePickProductProvider productProvider,
        @NonNull String json)

Added in version 6.19.0

Constructs a new BarcodePick object with the provided JSON serialization.

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

Added in version 6.19.0

Updates the mode according to a JSON serialization.

asyncMapperProductProviderFromJson(json, callback)
@NonNull BarcodePickAsyncMapperProductProvider asyncMapperProductProviderFromJson(
        @NonNull String json,
        @NonNull BarcodePickAsyncMapperProductProviderCallback callback)

Added in version 6.19.0

Constructs a new async BarcodePickAsyncMapperProductProvider with the provided JSON serialization.

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

Added in version 6.19.0

The object informed about deserialization events.

viewFromJson(parentView, dataCaptureContext, mode, json)
@NonNull BarcodePickView viewFromJson(@NonNull ViewGroup parentView,
        @NonNull DataCaptureContext dataCaptureContext,
        @NonNull BarcodePick mode,
        @NonNull String json)

Added in version 6.19.0

Constructs a new BarcodePickView object with the provided JSON serialization.

updateViewFromJson(view, json)
@NonNull BarcodePickView updateViewFromJson(
        @NonNull BarcodePickView view,
        @NonNull String json)

Added in version 6.19.0

Updates the view according to a JSON serialization.

viewSettingsFromJson(json)
@NonNull BarcodePickViewSettings viewSettingsFromJson(
        @NonNull String json)

Added in version 6.22.0

Construct a new BarcodePickViewSettings object with the provided JSON serialization.