mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-23 17:28:08 +00:00
24 lines
824 B
Objective-C
24 lines
824 B
Objective-C
#import <UIKit/UIKit.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import "ViewfinderView.h"
|
|
#import "UIView+React.h"
|
|
|
|
@class RCTCameraManager;
|
|
|
|
@interface RCTCamera : UIView
|
|
|
|
@property (nonatomic) ViewfinderView *viewfinder;
|
|
@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;
|
|
|
|
- (void)changeCamera:(NSInteger)camera;
|
|
- (void)changeOrientation:(NSInteger)orientation;
|
|
- (AVCaptureDevice *)deviceWithMediaType:(NSString *)mediaType preferringPosition:(AVCaptureDevicePosition)position;
|
|
- (void)takePicture:(RCTResponseSenderBlock)callback;
|
|
|
|
@end
|