mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			827 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			35 lines
		
	
	
		
			827 B
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#import <AVFoundation/AVFoundation.h>
 | 
						|
#import <SignalUtilitiesKit/OWSViewController.h>
 | 
						|
#import <UIKit/UIKit.h>
 | 
						|
#import <ZXingObjC/ZXingObjC.h>
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_BEGIN
 | 
						|
 | 
						|
@class OWSQRCodeScanningViewController;
 | 
						|
 | 
						|
@protocol OWSQRScannerDelegate
 | 
						|
 | 
						|
@optional
 | 
						|
 | 
						|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithString:(NSString *)string;
 | 
						|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithData:(NSData *)data;
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
#pragma mark -
 | 
						|
 | 
						|
@interface OWSQRCodeScanningViewController
 | 
						|
    : OWSViewController <AVCaptureMetadataOutputObjectsDelegate, ZXCaptureDelegate>
 | 
						|
 | 
						|
@property (nonatomic, weak) UIViewController<OWSQRScannerDelegate> *scanDelegate;
 | 
						|
 | 
						|
- (void)startCapture;
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_END
 |