mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
55 lines
1.5 KiB
Objective-C
55 lines
1.5 KiB
Objective-C
#import <React/RCTViewManager.h>
|
|
#import <React/RCTBridgeModule.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
@class RNCameraManager;
|
|
|
|
static const int RNFlashModeTorch = 3;
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraType) {
|
|
RNCameraTypeFront = AVCaptureDevicePositionFront,
|
|
RNCameraTypeBack = AVCaptureDevicePositionBack
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraFlashMode) {
|
|
RNCameraFlashModeOff = AVCaptureFlashModeOff,
|
|
RNCameraFlashModeOn = AVCaptureFlashModeOn,
|
|
RNCameraFlashModeTorch = RNFlashModeTorch,
|
|
RNCameraFlashModeAuto = AVCaptureFlashModeAuto
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraAutoFocus) {
|
|
RNCameraAutoFocusOff = AVCaptureFocusModeLocked,
|
|
RNCameraAutoFocusOn = AVCaptureFocusModeContinuousAutoFocus,
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraWhiteBalance) {
|
|
RNCameraWhiteBalanceAuto = 0,
|
|
RNCameraWhiteBalanceSunny = 1,
|
|
RNCameraWhiteBalanceCloudy = 2,
|
|
RNCameraWhiteBalanceFlash = 3,
|
|
RNCameraWhiteBalanceShadow = 4,
|
|
RNCameraWhiteBalanceIncandescent = 5,
|
|
RNCameraWhiteBalanceFluorescent = 6,
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraExposureMode) {
|
|
RNCameraExposureLocked = AVCaptureExposureModeLocked,
|
|
RNCameraExposureAuto = AVCaptureExposureModeContinuousAutoExposure,
|
|
RNCameraExposureCustom = AVCaptureExposureModeCustom,
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, RNCameraVideoResolution) {
|
|
RNCameraVideo2160p = 0,
|
|
RNCameraVideo1080p = 1,
|
|
RNCameraVideo720p = 2,
|
|
RNCameraVideo4x3 = 3,
|
|
};
|
|
|
|
@interface RNCameraManager : RCTViewManager <RCTBridgeModule>
|
|
|
|
+ (NSDictionary *)validBarCodeTypes;
|
|
|
|
@end
|
|
|