Barcode Find 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.
- BarcodeFindViewDeserializer
open class BarcodeFindViewDeserializer : NSObject
Added in version 6.19.0
A deserializer to construct BarcodeFindView instances from JSON.
- init
init()
Added in version 6.19.0
Creates a new deserializer object.
- view
open func view(fromJSONString JSONString: String, with context: DataCaptureContext, mode: BarcodeFind, parentView: UIView) throws -> BarcodeFindView
Added in version 6.19.0
Constructs a new BarcodeFindView with the provided JSON serialization.
- view
open func view(fromJSONString JSONString: String, with context: DataCaptureContext, mode: BarcodeFind, parentView: UIView, topLayoutAnchor: NSLayoutYAxisAnchor?) throws -> BarcodeFindView
Added in version 6.20.0
Constructs a new BarcodeFindView with the provided JSON serialization. An optional topLayoutAnchor can be specified.
- update
open func update(_ view: BarcodeFindView, fromJSONString JSONString: String) throws -> BarcodeFindView
Added in version 6.19.0
Updates the view according to a JSON serialization.
- settings
open func settings(fromJSONString JSONString: String) throws -> BarcodeFindViewSettings
Added in version 6.19.0
Deserializes BarcodeFindViewSettings from JSON.