xref: /expo/ios/versioned/sdk49/EXBarCodeScanner/EXBarCodeScanner/ABI49_0_0EXBarCodeScanner.h (revision af2ec015)
  • 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 <ABI49_0_0ExpoModulesCore/ABI49_0_0EXBarcodeScannerInterface.h>
6 
7 typedef NS_ENUM(NSInteger, ABI49_0_0EXCameraType) {
8   ABI49_0_0EXCameraTypeFront = AVCaptureDevicePositionFront,
9   ABI49_0_0EXCameraTypeBack = AVCaptureDevicePositionBack
10 };
11 
12 @interface ABI49_0_0EXBarCodeScanner : NSObject <ABI49_0_0EXBarCodeScannerInterface>
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