Barcode AR 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.
- BarcodeArDeserializerDelegate
protocol BarcodeArDeserializerDelegate : NSObjectProtocol
Added in version 7.1.0
The listener for the BarcodeAr deserializer.
- barcodeArDeserializer
optional func barcodeArDeserializer(_ deserializer: BarcodeArDeserializer, didStartDeserializingMode mode: BarcodeAr, from JSONValue: JSONValue) ->
VoidAdded 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.
- barcodeArDeserializer
optional func barcodeArDeserializer(_ deserializer: BarcodeArDeserializer, didFinishDeserializingMode mode: BarcodeAr, from JSONValue: JSONValue) ->
VoidAdded in version 7.1.0
Called when the deserialization of BarcodeAr is finished. This is the point to do additional deserialization.
- barcodeArDeserializer
optional func barcodeArDeserializer(_ deserializer: BarcodeArDeserializer, didStartDeserializingSettings settings: BarcodeArSettings, from JSONValue: JSONValue) ->
VoidAdded 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.
- barcodeArDeserializer
optional func barcodeArDeserializer(_ deserializer: BarcodeArDeserializer, didFinishDeserializingSettings settings: BarcodeArSettings, from JSONValue: JSONValue) ->
VoidAdded in version 7.1.0
Called when the deserialization of the BarcodeAr settings is finished. This is the point to do additional deserialization.
- BarcodeArDeserializer
open class BarcodeArDeserializer : NSObject
Added in version 7.1.0
A deserializer to construct Barcode AR settings and mode from JSON.
- init
init()
Added in version 7.1.0
Creates a new deserializer object.
- settings
open func settings(fromJSONString JSONString: String) throws -> BarcodeArSettings
Added in version 7.1.0
Constructs a new BarcodeArSettings object with the provided JSON serialization.
- update
open func update(_ settings: BarcodeArSettings, fromJSONString JSONString: String) throws -> BarcodeArSettings
Added in version 7.1.0
Updates the settings according to a JSON serialization.
- mode
open func mode(fromJSONString JSONString: String, context: DataCaptureContext) throws -> BarcodeAr
Added in version 7.1.0
Constructs a new BarcodeAr object with the provided JSON serialization.
- updateMode
open func updateMode(_ mode: BarcodeAr, fromJSONString JSONString: String) throws -> BarcodeAr
Added in version 7.1.0
Updates the mode according to a JSON serialization.
- delegate
open weak var delegate: BarcodeArDeserializerDelegate? { get, set }
Added in version 7.1.0
The object informed about deserialization events.