1 //
2 //  EXFaceDetectorManager.h
3 //  Exponent
4 //
5 //  Created by Stanisław Chmiela on 22.11.2017.
6 //  Copyright © 2017 650 Industries. All rights reserved.
7 //
8 
9 #import <AVFoundation/AVFoundation.h>
10 #import <ExpoModulesCore/EXFaceDetectorManagerInterface.h>
11 
12 @interface EXFaceDetectorManager : NSObject <EXFaceDetectorManagerInterface>
13 
14 - (void)setOnFacesDetected:(void (^)(NSArray<NSDictionary *> *))onFacesDetected;
15 
16 - (void)setIsEnabled:(BOOL)enabled;
17 - (void)updateSettings:(NSDictionary *)settings;
18 
19 - (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session
20                         withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
21 - (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session
22                         withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer mirrored:(BOOL)mirrored;
23 - (void)stopFaceDetection;
24 
25 @end
26