Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for iOS

SBSParserResult Class Reference

Inherits NSObject.

Properties

NSString * jsonString
 
NSDictionary< NSString *, SBSParserField * > * fieldsDict
 
NSArray< SBSParserField * > * fieldsArray
 
NSDictionary< NSString *, SBSParserField * > * fieldsByName
 
NSArray< SBSParserField * > * fields
 

Detailed Description

Holds the result of a successfully parsed data string.

The result can be accessed in one of many ways:

  • Through an array of parser fields. The order of the fields in the array matches the order of how they appear in the data.
  • Through a dictionary (fieldsByName).
  • through a jsonString.

The fields contained in the result are different for each type of parser. Consult the format documentation for more information.

Since
5.6

Property Documentation

- (NSString*) jsonString
readnonatomicassign

The result object as a serialized JSON string.

Since
5.6
- (NSDictionary<NSString *, SBSParserField *>*) fieldsDict
readnonatomicassign
- (NSArray<SBSParserField *>*) fieldsArray
readnonatomicassign
- (NSDictionary<NSString *, SBSParserField *>*) fieldsByName
readnonatomicassign

The fields contained in the result as a dictionary.

The entries in the dictionary map the field name to the parser field.

Since
5.6
- (NSArray<SBSParserField *>*) fields
readnonatomicassign

The fields contained in the result as an array.

The order of the fields in array depends on the order of the fields in the input data.

Since
5.6

The documentation for this class was generated from the following file: