SBSBarcodeGenerator.h
Go to the documentation of this file.
1 //
2 // SBSBarcodeGenerator.h
3 // ScanditBarcodeScanner
4 //
5 // Created by Tibor Molnár on 13/07/2018.
6 // Copyright © 2018 Scandit AG. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import "SBSCode.h"
11 
22 
23 NS_ASSUME_NONNULL_BEGIN
24 
30 FOUNDATION_EXPORT NSString *const SBSGeneratorErrorDomain;
31 
32 @class SBSEncodingRange;
33 
39 @interface SBSBarcodeGenerator : NSObject
40 
51 - (nullable UIImage *)generateFromString:(nullable NSString *)string error:(NSError *_Nullable *_Nullable)outError;
52 
63 - (nullable UIImage *)generateFromData:(nullable NSData *)data error:(NSError *_Nullable *_Nullable)outError;
64 
76 - (nullable UIImage *)generateFromData:(nullable NSData *)data
77  encodings:(nullable NSArray<SBSEncodingRange *> *)encodings
78  error:(NSError *_Nullable *_Nullable)outError;
79 
90 - (BOOL)setOptions:(NSDictionary<NSString *, id> *)options error:(NSError *_Nullable *_Nullable)outError;
91 
92 @end
93 
94 NS_ASSUME_NONNULL_END
#define SBS_ENUM_END(name)
Definition: SBSCommon.h:17
Definition: SBSBarcodeGenerator.h:20
SBSGeneratorError
Definition: SBSBarcodeGenerator.h:17
A barcode generator.
Definition: SBSBarcodeGenerator.h:39
NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const SBSGeneratorErrorDomain
The NSError domain of the SBSBarcodeGenerator related errors.
Definition: SBSBarcodeGenerator.h:30
Definition: SBSBarcodeGenerator.h:19
An encoding range for the barcode generator. Specifies the encoding and the start and end index of th...
Definition: SBSEncodingRange.h:19
Definition: SBSBarcodeGenerator.h:18
#define SBS_ENUM_BEGIN(name)
Definition: SBSCommon.h:16