Inherits from: | NSObject |
---|
A symbol wraps all of the information the library has about a decoded barcode. Use the available properties to retrieve the barcode data, the symbology (type of barcode), location and more.
This class is a simple wrapper around a zbar_symbol_t C object (q.v.)
- zbar_symbol_type_t type¶
The type of symbology that was decoded. (read-only)
- NSString* typeName¶
The canonical name used by the library to represent the symbology. (read-only)
- NSUInteger configMask¶
Bitmask of symbology config settings used during decode.
- NSUInteger modifierMask¶
Bitmask of symbology characteristics detected during decode. See zbar_modifier_t for the currently defined modifier bits.
- NSString* data¶
The raw decoded barcode data. (read-only)
- int quality¶
A relative metric indicating rough confidence in the decoded value. Larger values are better than smaller values. (read-only)
- zbar_orientation_t orientation¶
The general, axis-aligned orientation of the symbol, or ZBAR_ORIENT_UNKNOWN if unknown. (read-only)
- ZBarSymbolSet* components¶
The components of a composite symbol. (read-only)
- const zbar_symbol_t* zbarSymbol¶
Retrieve the underlying C object instance. (read-only)
- CGRect bounds¶
Calculate a rough bounding box for the symbol. (read-only)
Note
Coordinates are relative to the image data, which may not match a displayed UIImage. Make sure to account for the UIImage orientation when using these values.
- + (NSString*) nameForType:(zbar_symbol_type_t)type
Retrieve the canonical name for a symbology used by the library, given its enumerated value.
Type : The zbar_symbol_type_t enumerated symbology value. Returns : A short string name for the symbology.
- - (id) initWithSymbol:(const zbar_symbol_t*)symbol
Initialize a symbol wrapper, given the C object to wrap.
Symbol : The C object to wrap. Returns : The initialized symbol, or nil if an error occurred.
Symbology identifiers.
The coarse orientation of a symbol.
Note
Orientation is relative to the image data, which may not match a displayed UIImage. Make sure to account for the UIImage orientation when using these values.
Decoder symbology modifier flags.
Note
These are bit indices, use eg, (1 << ZBAR_MOD_GS1) to test the modifierMask property.