xref: /expo/packages/expo-barcode-scanner/ios/EXBarCodeScanner/EXBarCodeScanner.h (revision 5d715522)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016-present 650 Industries. All rights reserved.
2 
3 #import <Foundation/Foundation.h>
4 #import <AVFoundation/AVFoundation.h>
5 #import <ExpoModulesCore/EXBarcodeScannerInterface.h>
6 
7 typedef NS_ENUM(NSInteger, EXCameraType) {
8   EXCameraTypeFront = AVCaptureDevicePositionFront,
9   EXCameraTypeBack = AVCaptureDevicePositionBack
10 };
11 
12 @interface EXBarCodeScanner : NSObject <EXBarCodeScannerInterface>
13 
14 - (void)setSession:(AVCaptureSession *)session;
15 - (void)setSessionQueue:(dispatch_queue_t)sessionQueue;
16 - (void)setOnBarCodeScanned:(void (^)(NSDictionary *))onBarCodeScanned;
17 
18 - (void)setIsEnabled:(BOOL)enabled;
19 - (void)setSettings:(NSDictionary<NSString *, id> *)settings;
20 
21 - (void)setPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
22 
23 - (void)maybeStartBarCodeScanning;
24 - (void)stopBarCodeScanning;
25 
26 @end
27 

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025