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.

SDCBarcodeCountDeserializer
@interface SDCBarcodeCountDeserializer : NSObject

Added in version 6.16.0

A deserializer to construct barcode count settings from JSON.

Related topics: Serialization.

+ barcodeCountDeserializer
+ (instancetype)barcodeCountDeserializer

Added in version 6.16.0

Creates a new deserializer object.

- settingsFromJSONString:error:
- (nullable SDCBarcodeCountSettings *)settingsFromJSONString:(NSString *)JSONString
                                                       error:(NSError **)error

Added in version 6.16.0

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

- updateSettings:fromJSONString:error:
- (nullable SDCBarcodeCountSettings *)updateSettings:(SDCBarcodeCountSettings *)settings
                                      fromJSONString:(NSString *)JSONString
                                               error:(NSError **)error

Added in version 6.16.0

Updates the settings according to a JSON serialization.

- modeFromJSONString:context:error:
- (nullable SDCBarcodeCount *)modeFromJSONString:(NSString *)JSONString
                                         context:(SDCDataCaptureContext *)context
                                           error:(NSError **)error

Added in version 6.17.0

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

- updateMode:fromJSONString:error:
- (nullable SDCBarcodeCount *)updateMode:(SDCBarcodeCount *)mode
                          fromJSONString:(NSString *)JSONString
                                   error:(NSError **)error

Added in version 6.17.0

Updates the mode according to a JSON serialization.

- updateMode:fromJSONString:context:error:
- (nullable SDCBarcodeCount *)updateMode:(SDCBarcodeCount *)mode
                          fromJSONString:(NSString *)JSONString
                                 context:(SDCDataCaptureContext *)context
                                   error:(NSError **)error

Added in version 6.18.0

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