session-ios/Session/Shared/OWSQRCodeScanningViewContro...

35 lines
827 B
C
Raw Normal View History

//
2018-02-28 16:55:33 +01:00
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
2020-11-11 07:45:50 +01:00
#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