layout | title | description | keywords | needAutoGenerateSidebar | needGenerateH3Content | breadcrumbText | permalink |
---|---|---|---|---|---|---|---|
default-layout |
DSLocalizedBarcodesUnit Class - Dynamsoft Barcode Reader iOS Edition |
The DSLocalizedBarcodesUnit class represents a unit that contains localized barcodes unit. It inherits from the DSIntermediateResultUnit class. |
GetCount, GetLocalizedBarcode, DSLocalizedBarcodesUnit, api reference |
true |
true |
DSLocalizedBarcodesUnit |
/programming/objectivec-swift/api-reference/localized-barcodes-unit.html |
The DSLocalizedBarcodesUnit
class represents a unit that contains localized barcodes unit. It inherits from the [DSIntermediateResultUnit
]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html) class.
Assembly: DynamsoftBarcodeReader.framework
>- Objective-C >- Swift > >1. ```objc @interface DSLocalizedBarcodesUnit: DSIntermediateResultUnit ``` 2. ```swift class LocalizedBarcodesUnit : DSIntermediateResultUnit ```Methods | Description |
---|---|
getLocalizedBarcodes |
Get all localized barcodes. |
getCount |
Get the count of localized barcodes. |
getLocalizedBarcode |
Get a localized barcode by index. |
removeAllLocalizedBarcodes |
Remove all localized barcodes. |
removeLocalizedBarcode |
Remove a localized barcode by index. |
addLocalizedBarcode |
Add a localized barcode. |
setLocalizedBarcode |
Set a localized barcode. |
The following methods are inherited from class [DSIntermediateResultUnit
]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html).
{%- include api-reference/intermediate-result-unit-ios.md -%}
Get all localized barcodes.
>- Objective-C >- Swift > >1. ```objc - (nullable NSArray *)getLocalizedBarcodes ``` 2. ```swift func getLocalizedBarcodes() -> [LocalizedBarcodeElement]? ```Return Value
An array of LocalizedBarcodeElement
as the localized barcodes.
Get the count of localized barcodes.
>- Objective-C >- Swift > >1. ```objc - (NSInteger)getCount ``` 2. ```swift func getCount() -> Int ```Return Value
The count of localized barcodes.
Get the LocalizeBarcodeElement
at the specified index.
Parameters
[in] index
: The index of the localized barcode.
Return Value
The LocalizeBarcodeElement
at the specified index.
Remove all localized barcodes.
>- Objective-C >- Swift > >1. ```objc - (void)removeAllLocalizedBarcodes ``` 2. ```swift func removeAllLocalizedBarcodes() ```Remove the LocalizedBarcodeElement
from the unit at the specified index.
Parameters
[in] index
: The index of the localized barcode.
Add a new LocalizedBarcodeElement
to the unit.
Parameters
[in] element
: The LocalizedBarcodeElement
to add.
[in] matrixToOriginalImage
: The transformation matrix from the original image to the unit.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.
Set the LocalizedBarcodeElement
at the specified index.
Parameters
[in] index
: The index of the localized barcode.
[in] element
: The LocalizedBarcodeElement
to set.
[in] matrixToOriginalImage
: The transformation matrix from the original image to the unit.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.