// // YHScanQRView.h // YHAVFoundtionQRScan // // Created by Foxconn on 2018/1/25. // Copyright © 2018年 Foxconn. All rights reserved. // #import <UIKit/UIKit.h> @interface YHScanQRView : UIView typedef enum : NSUInteger { /// 默认与边框线同中心点 CornerLoactionDefault, /// 在边框线内部 CornerLoactionInside, /// 在边框线外部 CornerLoactionOutside, } CornerLoaction; // 扫描线名字 @property (nonatomic, copy) NSString *scanningImageName; // 边框颜色,默认白色 @property (nonatomic, strong) UIColor *borderColor; // 边角颜色,默认绿色 @property (nonatomic, strong) UIColor *cornerColor; // 边角宽度,默认 2.0 @property (nonatomic, assign) CGFloat cornerWidth; // 边角长度,默认 25.0 @property (nonatomic, assign) CGFloat cornerLenght; // 扫描区周边颜色的 alpha 值,默认 0.5f @property (nonatomic, assign) CGFloat backgroundAlpha; // 扫描线动画时间,默认 0.02 @property (nonatomic, assign) NSTimeInterval animationTimeInterval; // 边角位置 @property (nonatomic, assign) CornerLoaction cornerLocation; // 背景颜色 默认黑色 @property (nonatomic, strong) UIColor *viewBGColor; // 扫描框的X值 @property (nonatomic, assign) float scanViewX; // 扫描框的Y值 @property (nonatomic, assign) float scanViewY; // 扫描框的宽度 @property (nonatomic, assign) float scanViewWidth; // 扫描框的高度 @property (nonatomic, assign) float scanViewHeight; // 添加定时器 - (void)addTimer; // 移除定时器 - (void)removeTimer; @end