BasicScanCandidate
Objective-C
@interface BasicScanCandidate : NSObject <NSCoding, NSSecureCoding>
Swift
class BasicScanCandidate : NSObject, NSCoding, NSSecureCoding
A model class to hold the basic scan candidate which can be used to send network request
-
The raw content string.
Declaration
Objective-C
@property (nonatomic, strong, readonly) ParsedContent* content
-
The code ID
Declaration
Objective-C
@property (nonatomic, strong, readonly) CodeOrigin* codeOrigin
-
To intialise the model object
Declaration
Objective-C
- (nonnull instancetype)initWithContent:(id)content codeOrigin:(id)codeOrigin;
Swift
init(content: Any!, codeOrigin: Any!)
Parameters
content
a ParsedContent with scanned code details
codeOrigin
orgin of the code