2022-11-25 15:08:47 +08:00

74 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// LBXScanView.h
//
// github:https://github.com/MxABC/LBXScan
//
#import <UIKit/UIKit.h>
#import "LBXScanLineAnimation.h"
#import "LBXScanNetAnimation.h"
#import "LBXScanViewStyle.h"
#define LBXScan_Define_UI
/**
扫码区域显示效果
*/
@interface LBXScanView : UIView
//扫码区域各种参数
@property (nonatomic, strong) LBXScanViewStyle* viewStyle;
/**
@brief 初始化
@param frame 位置大小
@param style 类型
@return instancetype
*/
-(id)initWithFrame:(CGRect)frame style:(LBXScanViewStyle*)style;
/**
* 设备启动中文字提示
*/
- (void)startDeviceReadyingWithText:(NSString*)text;
/**
* 设备启动完成
*/
- (void)stopDeviceReadying;
/**
* 开始扫描动画
*/
- (void)startScanAnimation;
/**
* 结束扫描动画
*/
- (void)stopScanAnimation;
//
/**
@brief 根据矩形区域获取Native扫码识别兴趣区域
@param view 视频流显示UIView
@param style 效果界面参数
@return 识别区域
*/
+ (CGRect)getScanRectWithPreView:(UIView*)view style:(LBXScanViewStyle*)style;
/**
根据矩形区域获取ZXing库扫码识别兴趣区域
@param view 视频流显示视图
@param style 效果界面参数
@return 识别区域
*/
+ (CGRect)getZXingScanRectWithPreView:(UIView*)view style:(LBXScanViewStyle*)style;
@end