| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- //
- // Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "HmsScanFormat.h"
- @interface HmsMultiFormatWriter : NSObject
- /*Error
- * Thrown when a barcode was successfully detected and decoded, but
- * was not returned because its checksum feature failed.
- code = 1000,
- * Thrown when a barcode was successfully detected, but some aspect of
- * the content did not conform to the barcode's format rules. This could have
- * been due to a mis-detection.
- code = 1001,
- * Thrown when a barcode was not found in the image. It might have been
- * partially detected but could not be confirmed.
- code = 1002,
- * Thrown when an exception occurs during Reed-Solomon decoding, such as when
- * there are too many errors to correct.
- code = 1003,
- * This general error is thrown when something goes wrong during decoding of a barcode.
- * This includes, but is not limited to, failing checksums / error correction algorithms, being
- * unable to locate finder timing patterns, and so on.
- code = 1004,
- * Covers the range of error which may occur when encoding a barcode using the Writer framework.
- code = 1005,
- */
- + (UIImage *)createCodeWithString:(NSString*)str size:(CGSize)size CodeFomart:(HMSScanFormatTypeCode)format error:(NSError **)error;
- @end
|