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.

SDCBarcodeCountViewDeserializer
@interface SDCBarcodeCountViewDeserializer : NSObject

Added in version 6.17.0

A deserializer to construct barcode count views from JSON.

Related topics: Serialization.

+ barcodeCountViewDeserializer
+ (instancetype)barcodeCountViewDeserializer

Added in version 6.17.0

Creates a new deserializer object.

- viewFromJSONString:barcodeCount:context:error:
- (nullable SDCBarcodeCountView *)viewFromJSONString:(NSString *)JSONString
                                        barcodeCount:(SDCBarcodeCount *)mode
                                             context:(SDCDataCaptureContext *)context
                                               error:(NSError **)error

Added in version 6.17.0

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

- updateView:fromJSONString:error:
- (nullable SDCBarcodeCountView *)updateView:(SDCBarcodeCountView *)view
                              fromJSONString:(NSString *)JSONString
                                       error:(NSError **)error

Added in version 6.17.0

Updates the view according to a JSON serialization.

- updateView:fromJSONString:context:error:
- (nullable SDCBarcodeCountView *)updateView:(SDCBarcodeCountView *)view
                              fromJSONString:(NSString *)JSONString
                                     context:(SDCDataCaptureContext *)context
                                       error:(NSError **)error

Added in version 6.18.0

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

warnings
@property (nonatomic, readonly) NSArray<NSString *> *warnings

Added in version 6.17.0

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