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.
- SDCBarcodeFindViewDeserializer
@interface SDCBarcodeFindViewDeserializer : NSObject
Added in version 6.19.0
A deserializer to construct SDCBarcodeFindView instances from JSON.
- + barcodeFindViewDeserializer
+ (
instancetype
)barcodeFindViewDeserializerAdded in version 6.19.0
Creates a new deserializer object.
- - viewFromJSONString:withContext:mode:parentView:error:
- (nullable SDCBarcodeFindView *)viewFromJSONString:(nonnull NSString *)JSONString withContext:(nonnull SDCDataCaptureContext *)context mode:(nonnull SDCBarcodeFind *)mode parentView:(nonnull UIView *)parentView error:(NSError **)error
Added in version 6.19.0
Constructs a new SDCBarcodeFindView with the provided JSON serialization.
- - viewFromJSONString:withContext:mode:parentView:topLayoutAnchor:error:
- (nullable SDCBarcodeFindView *)viewFromJSONString:(nonnull NSString *)JSONString withContext:(nonnull SDCDataCaptureContext *)context mode:(nonnull SDCBarcodeFind *)mode parentView:(nonnull UIView *)parentView topLayoutAnchor:(nullable NSLayoutYAxisAnchor *)topLayoutAnchor error:(NSError **)error
Added in version 6.20.0
Constructs a new SDCBarcodeFindView with the provided JSON serialization. An optional topLayoutAnchor can be specified.
- - updateView:fromJSONString:error:
- (nullable SDCBarcodeFindView *)updateView:(nonnull SDCBarcodeFindView *)view fromJSONString:(nonnull NSString *)JSONString error:(NSError **)error
Added in version 6.19.0
Updates the view according to a JSON serialization.
- - settingsFromJSONString:error:
- (nullable SDCBarcodeFindViewSettings *) settingsFromJSONString:(NSString *)JSONString error:(NSError **)error
Added in version 6.19.0
Deserializes SDCBarcodeFindViewSettings from JSON.