react-native-camera/ios/RN/RNFaceDetectorManagerStub.h

31 lines
814 B
C
Raw Normal View History

2018-01-26 18:33:31 -02:00
//
// RNFaceDetectorStub.h
// RCTCamera
//
// Created by Joao Guilherme Daros Fidelis on 24/01/18.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@protocol RNFaceDetectorDelegate
- (void)onFacesDetected:(NSArray<NSDictionary *> *)faces;
@end
@interface RNFaceDetectorManagerStub : NSObject
- (NSDictionary *)constantsToExport;
+ (NSDictionary *)constants;
- (instancetype)initWithSessionQueue:(dispatch_queue_t)sessionQueue delegate:(id <RNFaceDetectorDelegate>)delegate;
- (void)setIsEnabled:(id)json;
- (void)setLandmarksDetected:(id)json;
- (void)setClassificationsDetected:(id)json;
- (void)setMode:(id)json;
- (void)maybeStartFaceDetectionOnSession:(AVCaptureSession *)session withPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
- (void)stopFaceDetection;
@end