/*
 * This is one of the header files of Dynamsoft Capture Vision SDK - Barcode Reader module.
 *
 * Copyright © Dynamsoft Corporation. All rights reserved.
 */

#import <Foundation/Foundation.h>
#import <DynamsoftCaptureVisionBundle/DSIntermediateResultUnit.h>

@class DSLocalizedBarcodeElement;

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(LocalizedBarcodesUnit)
@interface DSLocalizedBarcodesUnit : DSIntermediateResultUnit

- (nullable NSArray<DSLocalizedBarcodeElement *> *)getLocalizedBarcodes;

- (NSInteger)getCount;

- (nullable DSLocalizedBarcodeElement *)getLocalizedBarcode:(NSInteger)index;

- (void)removeAllLocalizedBarcodes;

- (NSInteger)removeLocalizedBarcode:(NSInteger)index;

- (NSInteger)addLocalizedBarcode:(DSLocalizedBarcodeElement*)element
           matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;

- (NSInteger)setLocalizedBarcode:(NSInteger)index
                         element:(DSLocalizedBarcodeElement*)element
           matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;

+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
