xref: /expo/packages/expo-modules-core/ios/Interfaces/BarcodeScanner/EXBarcodeScannerInterface.h (revision 3f43d67e)
  • 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 <UIKit/UIKit.h>
6 
7 @protocol EXBarCodeScannerInterface
8 
9 #if !TARGET_OS_TV
10 - (void)setSession:(AVCaptureSession *)session;
11 - (void)setSessionQueue:(dispatch_queue_t)sessionQueue;
12 - (void)setOnBarCodeScanned:(void (^)(NSDictionary *))onBarCodeScanned;
13 
14 - (void)setIsEnabled:(BOOL)enabled;
15 - (void)setSettings:(NSDictionary *)settings;
16 
17 - (void)setPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
18 
19 - (void)maybeStartBarCodeScanning;
20 - (void)stopBarCodeScanning;
21 #endif
22 
23 @end
24 

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026