Barcode AR View 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.

BarcodeArViewDeserializer
class BarcodeArViewDeserializer

Added in version 7.1.0

A deserializer to construct Barcode AR views from JSON.

BarcodeArViewDeserializer()
BarcodeArViewDeserializer()

Added in version 7.1.0

Creates a new deserializer object.

viewFromJson(parentView, mode, context, json)
fun viewFromJson(parentView: ViewGroup,
        mode: BarcodeAr,
        context: DataCaptureContext,
        json: String): BarcodeArView

Added in version 7.1.0

Constructs a new BarcodeArView object with the provided JSON serialization.

updateViewFromJson(view, json)
fun updateViewFromJson(view: BarcodeArView,
        json: String)

Added in version 7.1.0

Updates the view according to a JSON serialization.