Barcode Count View Deserializer

Defined in framework ScanditBarcodeCapture

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.

BarcodeCountViewDeserializer
open class BarcodeCountViewDeserializer : NSObject

Added in version 6.17.0

A deserializer to construct barcode count views from JSON.

init
init()

Added in version 6.17.0

Creates a new deserializer object.

view
open func view(fromJSONString JSONString: String, barcodeCount mode: BarcodeCount, context: DataCaptureContext) throws -> BarcodeCountView

Added in version 6.17.0

Constructs a new barcode count view with the provided JSON serialization.

view
open func view(fromJSONString JSONString: String, barcodeCount mode: BarcodeCount, topLayoutAnchor: NSLayoutYAxisAnchor?, context: DataCaptureContext) throws -> BarcodeCountView

Added in version 6.24.0

Constructs a new barcode count view with the provided JSON serialization. An optional topLayoutAnchor can be specified.

update
open func update(_ view: BarcodeCountView, fromJSONString JSONString: String) throws -> BarcodeCountView

Added in version 6.17.0

Updates the view according to a JSON serialization.

update
open func update(_ view: BarcodeCountView, fromJSONString JSONString: String, context: DataCaptureContext) throws -> BarcodeCountView

Added in version 6.18.0

Updates the view according to a JSON serialization, sets the view to use the DataCaptureContext instance passed as parameter.

warnings
open var warnings: Array<String> { get }

Added in version 6.17.0

The warnings produced during deserialization, for example which properties were not used during deserialization.