HmsMultiFormatWriter.h 1.4 KB

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