QRExtendedParameters
Source: Reader.
Stores a QR Structured Append information of recognized barcode This sample shows how to get QR Structured Append data
let reader = new BarCodeReader("test.png", null, DecodeType.QR); reader.readBarCodes().forEach(function(result, i, results) { console.log("BarCode Type: " + result.getCodeTypeName()); console.log("BarCode CodeText: " + result.getCodeText()); console.log("QR Structured Append Quantity: " + result.getExtended().getQR().getQRStructuredAppendModeBarCodesQuantity()); console.log("QR Structured Append Index: " + result.getExtended().getQR().getQRStructuredAppendModeBarCodeIndex()); console.log("QR Structured Append ParityData: " + result.getExtended().getQR().getQRStructuredAppendModeParityData()); });
new QRExtendedParameters()
Methods
op_Equality(first, second)
Returns a value indicating whether the first QRExtendedParameters value is equal to the second.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
first |
|
|
A first compared value |
second |
|
|
A second compared value |
- Returns
-
true if first has the same value as second; otherwise, false.
op_Inequality(first, second)
Returns a value indicating if the first QRExtendedParameters value is different from the second.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
first |
|
|
A first compared value |
second |
|
|
A second compared value |
- Returns
-
true if first has the different value from second; otherwise, false.
equals(obj)
Returns a value indicating whether this instance is equal to a specified QRExtendedParameters value.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
obj |
|
|
An object value to compare to this instance. |
- Returns
-
true if obj has the same value as this instance; otherwise, false.
getQRStructuredAppendModeBarCodeIndex()
Gets the index of the QR structured append mode barcode. Index starts from 0. Default value is -1.Value: The quantity of the QR structured append mode barcode.
getQRStructuredAppendModeBarCodesQuantity()
Gets the QR structured append mode barcodes quantity. Default value is -1.Value: The quantity of the QR structured append mode barcode.
getQRStructuredAppendModeParityData()
Gets the QR structured append mode parity data. Default value is -1.Value: The index of the QR structured append mode barcode.
hashCode()
Returns the hash code for this instance.
- Returns
-
A 32-bit signed integer hash code.
toString()
Returns a human-readable string representation of this QRExtendedParameters.
- Returns
-
A string that represents this QRExtendedParameters.