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