SlyceBarcode Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCoding |
Declared in | SlyceBarcode.h |
type
The barcode result type.
@property (nonatomic, readonly) SlyceBarcodeType type
Declared In
SlyceBarcode.h
typeString
The barcode result type in a string representation.
@property (nonatomic, copy, readonly, nonnull) NSString *typeString
Declared In
SlyceBarcode.h
text
The UTF-8 encoded string representing the scan result.
@property (nonatomic, copy, readonly, nonnull) NSString *text
Declared In
SlyceBarcode.h
metadata
The barcode’s AVFoundation metadata.
@property (nonatomic, strong, nullable) AVMetadataMachineReadableCodeObject *metadata
Declared In
SlyceBarcode.h
– initWithType:andText:NS_DESIGNATED_INITIALIZER:
Designated initializer.
- (nonnull instancetype)initWithType:(SlyceBarcodeType)type andText:(nonnull NSString *)text NS_DESIGNATED_INITIALIZER
Parameters
type |
Barcode type. |
---|---|
text |
Barcode string. |
Return Value
instance of SlyceBarcode.
Discussion
Use this method to create a new SlyceSearchRequest
.
Declared In
SlyceBarcode.h
+ stringFromBarcodeType:
Convert a SlyceBarcodeType
value to string format.
+ (nullable NSString *)stringFromBarcodeType:(SlyceBarcodeType)barcodeType
Parameters
barcodeType |
Barcode type. |
---|
Return Value
a string representation of the barcode type
Declared In
SlyceBarcode.h
+ barcodeTypeFromString:NS_SWIFT_NAME:
Convert a string to a SlyceBarcodeType
value.
+ (SlyceBarcodeType)barcodeTypeFromString:(nonnull NSString *)typeString NS_SWIFT_NAME
Parameters
typeString |
Barcode type string representation. |
---|
Return Value
The SlyceBarcodeType
value, or SlyceBarcodeTypeNone
if the string could not be converted.
Declared In
SlyceBarcode.h