2015-04-01 01:02:57 +00:00
|
|
|
#import "RCTViewManager.h"
|
2015-04-02 09:40:03 +00:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
|
|
|
|
@class RCTCamera;
|
2015-04-01 01:02:57 +00:00
|
|
|
|
|
|
|
@interface RCTCameraManager : RCTViewManager
|
2015-04-02 09:40:03 +00:00
|
|
|
|
2015-04-11 02:56:30 +00:00
|
|
|
@property (nonatomic) dispatch_queue_t sessionQueue;
|
|
|
|
@property (nonatomic) AVCaptureSession *session;
|
|
|
|
@property (nonatomic) AVCaptureDeviceInput *captureDeviceInput;
|
|
|
|
@property (nonatomic) AVCaptureStillImageOutput *stillImageOutput;
|
|
|
|
@property (nonatomic) id runtimeErrorHandlingObserver;
|
|
|
|
@property (nonatomic) NSInteger presetCamera;
|
2015-04-17 00:16:35 +00:00
|
|
|
@property (nonatomic) AVCaptureVideoPreviewLayer *previewLayer;
|
2015-04-02 09:40:03 +00:00
|
|
|
|
2015-04-17 00:16:35 +00:00
|
|
|
- (void)changeAspect:(NSString *)aspect;
|
2015-04-11 02:56:30 +00:00
|
|
|
- (void)changeCamera:(NSInteger)camera;
|
|
|
|
- (void)changeOrientation:(NSInteger)orientation;
|
|
|
|
- (AVCaptureDevice *)deviceWithMediaType:(NSString *)mediaType preferringPosition:(AVCaptureDevicePosition)position;
|
|
|
|
- (void)takePicture:(RCTResponseSenderBlock)callback;
|
|
|
|
|
2015-04-02 09:40:03 +00:00
|
|
|
@end
|