/*
 * 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 DSDecodedBarcodeElement;

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(DecodedBarcodesUnit)
@interface DSDecodedBarcodesUnit : DSIntermediateResultUnit

- (nullable NSArray<DSDecodedBarcodeElement *> *)getDecodedBarcodes;

- (NSInteger)getCount;

- (nullable DSDecodedBarcodeElement *)getDecodedBarcode:(NSInteger)index;

- (void)removeAllDecodedBarcodes;

- (NSInteger)setDecodedBarcode:(DSDecodedBarcodeElement*)element
         matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;

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

@end

NS_ASSUME_NONNULL_END
