Files
gl-react-native/ios/CaptureConfig.h
Gaëtan Renaudeau d202a1ff6f Implement options for captureFrame
- format: "base64" || "file"
- type: "png" || "jpeg"/"jpg" || "webm" (android only)
- quality: from 0 to 1 (iOS support only with type=jpg/jpeg)
- filePath: for format=="file" you must provide a file path (you can use react-native-fs to get directory constants)
2015-12-31 14:07:02 +01:00

20 lines
555 B
Objective-C

#import <Foundation/Foundation.h>
@interface CaptureConfig: NSObject
@property (nonatomic, copy) NSString *format;
@property (nonatomic, copy) NSString *type;
@property (nonatomic, copy) NSString *filePath;
@property (nonatomic, copy) NSNumber *quality;
-(instancetype)initWithFormat: (NSString *)format
withType: (NSString *)type
withQuality: (NSNumber *)quality
withFilePath: (NSString *)filePath;
- (bool) isEqualToCaptureConfig: (CaptureConfig *)other;
- (NSDictionary *) dictionary;
@end