// // LXDScanView.h // LXDScanQRCode // // Created by 林欣达 on 15/10/14. // Copyright © 2015年 cnpayany. All rights reserved. // #import /*! 扫描成功发送通知(在代理实现的情况下不发送)*/ extern NSString * const LXDSuccessScanQRCodeNotification; /*! 通知传递数据中存储二维码信息的关键字*/ extern NSString * const LXDScanQRCodeMessageKey; @class LXDScanView; @protocol LXDScanViewDelegate - (void)scanView: (LXDScanView *)scanView codeInfo: (NSString *)codeInfo; @end /*! * @class * * @abstract * 二维码/条形码扫描视图 */ @interface LXDScanView : UIView /*! 扫描回调代理人*/ @property (nonatomic, weak) id delegate; /*! 创建扫描视图,建议使用LXDScanCodeController*/ + (instancetype)scanViewShowInController: (UIViewController *)controller; /*! 开始扫描*/ - (void)start; /*! 结束扫描*/ - (void)stop; @end