mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
- Got further along with image capture. Only captures the first(?) frame of the output from when the camera starts, not the frame at the time the picture is taken... Let me know if you know how to fix this @lwansbrough on twitter.
22 lines
694 B
Objective-C
22 lines
694 B
Objective-C
#import "RCTViewManager.h"
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
@class RCTCamera;
|
|
|
|
@interface RCTCameraManager : RCTViewManager
|
|
|
|
@property (nonatomic) dispatch_queue_t sessionQueue;
|
|
@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
|