SBSDKBarcodeDocumentParser
@interface SBSDKBarcodeDocumentParser : NSObject
A class to parse a raw string value (usually taken from the barcode) into a formatted document of the supported type.
-
Parses the string into one of the supported document type or returns nil if none of the supported document types was detected.
Declaration
Objective-C
- (nonnull SBSDKBarCodeScannerDocumentFormat *)parseDocument: (nonnull NSString *)inputString;
Swift
func parseDocument(_ inputString: String) -> SBSDKBarCodeScannerDocumentFormat
Parameters
inputString
The string to be parsed.
Return Value
Parsed barcode document or nil.