//
//  QRCodeViewController.h
//  lemonDemo
//
//  Created by rrd on 2017/6/30.
//  Copyright © 2017年 we. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface QRCodeViewController : UIViewController <AVCaptureMetadataOutputObjectsDelegate>


@property (nonatomic, copy) void (^openPressCallback)(NSString *url);
@property (weak, nonatomic) IBOutlet UIView *viewPreview;
@property (weak, nonatomic) IBOutlet UILabel *lblPrompt;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *bbitemStart;
@property (weak, nonatomic) IBOutlet UITextView *urlInput;
@property (weak, nonatomic) IBOutlet UIView *urlContainer;
- (IBAction)hideKeyboard:(id)sender;
- (IBAction)openPath:(id)sender;
- (IBAction)closeQRVC:(id)sender;

//键盘事件
- (void) changeContentViewPosition:(NSNotification *)notification;


@property (nonatomic, strong) AVCaptureSession *captureSession;
@property (nonatomic, strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;
- (Boolean)startReading;
- (void)stopReading;

@end


