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
C
35 lines
827 B
C
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
9 years ago
|
|
||
|
#import <AVFoundation/AVFoundation.h>
|
||
5 years ago
|
#import <SignalUtilitiesKit/OWSViewController.h>
|
||
9 years ago
|
#import <UIKit/UIKit.h>
|
||
9 years ago
|
#import <ZXingObjC/ZXingObjC.h>
|
||
9 years ago
|
|
||
8 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
9 years ago
|
@class OWSQRCodeScanningViewController;
|
||
|
|
||
|
@protocol OWSQRScannerDelegate
|
||
|
|
||
9 years ago
|
@optional
|
||
9 years ago
|
|
||
9 years ago
|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithString:(NSString *)string;
|
||
|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithData:(NSData *)data;
|
||
9 years ago
|
|
||
9 years ago
|
@end
|
||
9 years ago
|
|
||
8 years ago
|
#pragma mark -
|
||
|
|
||
9 years ago
|
@interface OWSQRCodeScanningViewController
|
||
8 years ago
|
: OWSViewController <AVCaptureMetadataOutputObjectsDelegate, ZXCaptureDelegate>
|
||
9 years ago
|
|
||
9 years ago
|
@property (nonatomic, weak) UIViewController<OWSQRScannerDelegate> *scanDelegate;
|
||
8 years ago
|
|
||
9 years ago
|
- (void)startCapture;
|
||
9 years ago
|
|
||
|
@end
|
||
8 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|