ParsedContent
Objective-C
@interface ParsedContent : NSObject <NSCoding, NSSecureCoding>
Swift
class ParsedContent : NSObject, NSCoding, NSSecureCoding
A model object to hold the details of the scanned code
-
The raw content string.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull rawContent;Swift
var rawContent: String { get } -
The code ID
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull codeID;Swift
var codeID: String { get } -
An optional key, if present it usually.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull customKey;Swift
var customKey: String { get } -
Raw host extracted from the raw content.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull host;Swift
var host: String { get } -
The type of the code, SID, SSC or Third party
Declaration
Objective-C
@property (nonatomic, readonly) ContentType contentType; -
To initialise the ParsedContent Model object
Declaration
Objective-C
- (nonnull instancetype)initWithRawContent:(nonnull NSString *)rawContent codeID:(nonnull NSString *)codeID host:(nonnull NSString *)host customKey:(nonnull NSString *)customKey contentType:(ContentType)contentType;Swift
init(rawContent: String, codeID: String, host: String, customKey: String, contentType: Any!)Parameters
rawContentcontent string
codeIDcode ID
hostraw host from content
customKeyoptional key
contentTypetype of the code
ParsedContent Class Reference