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.
- + barcodePickDeserializer
+ (
instancetype
)barcodePickDeserializerAdded 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 **)errorAdded 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 **)errorAdded in version 6.19.0
Constructs a new async SDCBarcodePickAsyncMapperProductProvider with the provided JSON serialization.
- delegate
@property (nonatomic, weak, nullable)
id
<SDCBarcodePickDeserializerDelegate> delegateAdded 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:customViewHighlightStyleDelegate:error:
- (nullable SDCBarcodePickView *)viewFromJSONString:(NSString *)JSONString context:(SDCDataCaptureContext *)context topLayoutAnchor:(nullable NSLayoutYAxisAnchor *)topLayoutAnchor mode:(SDCBarcodePick *)mode customViewHighlightStyleDelegate:(nullable
id
<SDCBarcodePickViewHighlightStyleCustomViewDelegate>) customViewHighlightStyleDelegate error:(NSError **)errorAdded in version 6.25.0
Constructs a new SDCBarcodePickView object with the provided JSON serialization, and a SDCBarcodePickViewHighlightStyleCustomViewDelegate for the SDCBarcodePickViewHighlightStyleCustomView type.
- - 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.