Barcode Pick 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.

SDCBarcodePickDeserializer
@interface SDCBarcodePickDeserializer : NSObject

Added in version 6.19.0

A deserializer to construct barcode pick settings and mode from JSON.

Related topics: Serialization.

+ barcodePickDeserializer
+ (instancetype)barcodePickDeserializer

Added in version 6.19.0

Creates a new deserializer object.

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

Added in version 6.19.0

Constructs a new SDCBarcodePickSettings object with the provided JSON serialization.

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

Added in version 6.19.0

Updates the settings according to a JSON serialization.

- modeFromJSONString:context:productProvider:error:
- (nullable SDCBarcodePick *)modeFromJSONString:(NSString *)JSONString
                                        context:(SDCDataCaptureContext *)context
                                productProvider:(id<SDCBarcodePickProductProvider>)
                                                productProvider
                                          error:(NSError **)error

Added in version 6.19.0

Constructs a new SDCBarcodePick object with the provided JSON serialization.

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

Added in version 6.19.0

Updates the mode according to a JSON serialization.

- asyncMapperProductProviderFromJSONString:delegate:error:
- (nullable SDCBarcodePickAsyncMapperProductProvider *)
  asyncMapperProductProviderFromJSONString:(NSString *)JSONString
                                  delegate:(id<SDCBarcodePickAsyncMapperProductProviderDelegate>)
                                           delegate
                                     error:(NSError **)error

Added in version 6.19.0

Constructs a new async SDCBarcodePickAsyncMapperProductProvider with the provided JSON serialization.

delegate
@property (nonatomic, weak, nullable) id<SDCBarcodePickDeserializerDelegate> delegate

Added in version 6.19.0

The object informed about deserialization events.

- viewFromJSONString:context:mode:error:
- (nullable SDCBarcodePickView *)viewFromJSONString:(NSString *)JSONString
                                            context:(SDCDataCaptureContext *)context
                                               mode:(SDCBarcodePick *)mode
                                              error:(NSError **)error

Added in version 6.19.0

Constructs a new SDCBarcodePickView object with the provided JSON serialization.

- viewFromJSONString:context:topLayoutAnchor:mode:error:
- (nullable SDCBarcodePickView *)viewFromJSONString:(NSString *)JSONString
                                            context:(SDCDataCaptureContext *)context
                                    topLayoutAnchor:(nullable NSLayoutYAxisAnchor *)topLayoutAnchor
                                               mode:(SDCBarcodePick *)mode
                                              error:(NSError **)error

Added in version 6.20.0

Constructs a new SDCBarcodePickView object with the provided JSON serialization. An optional topLayoutAnchor can be specified. See SDCBarcodePickViewSettings.topLayoutAnchor.

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

Added in version 6.19.0

Updates the view according to a JSON serialization.