xref: /expo/packages/expo-modules-core/ios/Interfaces/FaceDetector/EXFaceDetectorManagerInterface.h (revision ef901781)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright © 2018 650 Industries. All rights reserved.
2 
3 #import <Foundation/Foundation.h>
4 #import <AVFoundation/AVFoundation.h>
5 #import <UIKit/UIKit.h>
6 
7 @protocol EXFaceDetectorManagerInterface
8 #if !TARGET_OS_TV
9 - (void)setSessionQueue:(dispatch_queue_t)sessionQueue;
10 - (void)setIsEnabled:(BOOL)enabled;
11 - (void)setOnFacesDetected:(void (^)(NSArray<NSDictionary *> *))onFacesDetected;
12 
13 - (void)updateSettings:(NSDictionary *)settings;
14 - (void)updateMirrored:(BOOL) mirrored;
15 
16 - (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
17 - (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer mirrored:(BOOL) mirrored;
18 - (void)stopFaceDetection;
19 #endif
20 @end
21 

served by {OpenGrok

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