mirror of
https://github.com/expo/gl-react-native.git
synced 2026-11-15 17:34:35 -10:00
- 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)
20 lines
555 B
Objective-C
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
|