2015-03-31 18:02:57 -07:00
|
|
|
#import "RCTViewManager.h"
|
2015-04-02 02:40:03 -07:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
|
|
|
|
@class RCTCamera;
|
2015-03-31 18:02:57 -07:00
|
|
|
|
|
|
|
@interface RCTCameraManager : RCTViewManager
|
2015-04-02 02:40:03 -07:00
|
|
|
|
|
|
|
@property (nonatomic) AVCaptureSession *session;
|
|
|
|
@property (nonatomic) AVCaptureDeviceInput *captureDeviceInput;
|
|
|
|
@property (nonatomic) AVCaptureStillImageOutput *stillImageOutput;
|
|
|
|
@property (nonatomic) RCTCamera *currentCamera;
|
|
|
|
|
|
|
|
+ (id)sharedManager;
|
|
|
|
- (id)init;
|
|
|
|
- (void)setAspect:(NSString *) aspect;
|
|
|
|
- (void)setCamera:(NSInteger) camera;
|
|
|
|
- (void)setOrientation:(NSInteger) orientation;
|
|
|
|
- (AVCaptureDevice *)deviceWithMediaType:(NSString *)mediaType preferringPosition:(AVCaptureDevicePosition)position;
|
|
|
|
|
|
|
|
@end
|