Barcode Count 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.

BarcodeCountDeserializer
open class BarcodeCountDeserializer : NSObject

Added in version 6.16.0

A deserializer to construct barcode count settings from JSON.

init
init()

Added in version 6.16.0

Creates a new deserializer object.

settings
open func settings(fromJSONString JSONString: String) throws -> BarcodeCountSettings

Added in version 6.16.0

Constructs a new barcode count settings object with the provided JSON serialization.

update
open func update(_ settings: BarcodeCountSettings, fromJSONString JSONString: String) throws -> BarcodeCountSettings

Added in version 6.16.0

Updates the settings according to a JSON serialization.

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

Added in version 6.17.0

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

updateMode
open func updateMode(_ mode: BarcodeCount, fromJSONString JSONString: String) throws -> BarcodeCount

Added in version 6.17.0

Updates the mode according to a JSON serialization.

updateMode
open func updateMode(_ mode: BarcodeCount, fromJSONString JSONString: String, context: DataCaptureContext) throws -> BarcodeCount

Added in version 6.18.0

Updates the mode according to a JSON serialization, sets the mode 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.