BBASMScanCodeAdapterProtocol.h
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// BBASMScanCodeAdapterProtocol.h
// SWAN
//
// Created by baidu on 2018/11/6.
// Copyright © 2018 baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BBASMAdapterBaseImplement.h"
NS_ASSUME_NONNULL_BEGIN
typedef enum TMNPBarcodeType : NSInteger
{
EMNPBarcodeType_NONE = 0, /*no symbol decoded */
EMNPBarcodeType_EAN8 = 1,
EMNPBarcodeType_UPCE = 2, /**< UPC-E */
EMNPBarcodeType_ISBN10 = 3, /**< ISBN-10 */
EMNPBarcodeType_UPCA = 4, /**< UPC-A */
EMNPBarcodeType_EAN13 = 5, /**< EAN-13 */
EMNPBarcodeType_ISBN13 = 6, /**< ISBN-13 */
EMNPBarcodeType_I25 = 7, /**< Interleaved 2 of 5 */
EMNPBarcodeType_CODE39 = 8, /**< Code 39*/
EMNPBarcodeType_CODE128 = 9, /**< Code 128 */
EMNPBarcodeType_QRCODE = 10, /**< QR Code*/
EMNPBarcodeType_MATRIXCODE = 11,
EMNPBarcodeType_AZTECCODE = 12
}TMNPBarcodeType;
@protocol BBASMScanCodeAdapterProtocol <NSObject>
/**
* @brief 扫码
* @param callBack 扫码成功回调,result为"码的内容字符串",type为TMNPBarcodeType
*/
+ (void)scanCode:(void(^)(NSString *result,TMNPBarcodeType type))callBack;
@end
NS_ASSUME_NONNULL_END