ALFlashConfig Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | ALJSONStringRepresentable |
| Declared in | ALFlashConfig.h |
flashMode
The flash mode
@property (nonatomic, readonly) ALFlashMode flashModeDeclared In
ALFlashConfig.h
flashAlignment
The starting location of the flash button in the scan view
@property (nonatomic, readonly) ALFlashAlignment flashAlignmentDeclared In
ALFlashConfig.h
flashImage
If provided, the image shown for the flash
@property (nonatomic, readonly, nullable) UIImage *flashImageDeclared In
ALFlashConfig.h
flashOffset
A point offset positioning the flash button. Used in conjunction with the flash alignment
@property (nonatomic, readonly) CGPoint flashOffsetDeclared In
ALFlashConfig.h
– initWithJSONDictionary:error:
Initializes an ALFlashConfig with an NSDictionary representing the JSON config object
- (instancetype _Nullable)initWithJSONDictionary:(NSDictionary *)JSONDictionary error:(NSError *_Nullable *_Nullable)errorParameters
JSONDictionary |
NSDictionary representing the JSON config object |
|---|---|
error |
NSError object which is filled with appropriate information when initialization fails |
Return Value
an instance of ALFlashConfig
Declared In
ALFlashConfig.h
+ withJSONDictionary:
Creates an ALFlashConfig with an NSDictionary representing the JSON config object
+ (instancetype _Nullable)withJSONDictionary:(NSDictionary *)JSONDictionaryParameters
JSONDictionary |
NSDictionary representing the JSON config object |
|---|
Return Value
an instance of ALFlashConfig
Declared In
ALFlashConfig.h
+ defaultFlashConfig
Creates an ALFlashConfig with default values, useful for further customization
+ (instancetype _Nonnull)defaultFlashConfigDeclared In
ALFlashConfig.h
– initWithFlashMode:flashAlignment:flashImageName:flashOffset:
Initializes an ALFlashConfig object
- (instancetype _Nullable)initWithFlashMode:(ALFlashMode)flashMode flashAlignment:(ALFlashAlignment)flashAlignment flashImageName:(NSString *_Nullable)flashImageName flashOffset:(CGPoint)flashOffsetParameters
flashMode |
The flash mode |
|---|---|
flashAlignment |
The starting location of the flash button in the scan view |
flashImageName |
If provided, the image shown for the flash |
flashOffset |
A point offset positioning the flash button. Used in conjunction with the flash alignment |
Declared In
ALFlashConfig.h
+ withFlashMode:flashAlignment:flashImageName:flashOffset:
Creates an ALFlashConfig object
+ (ALFlashConfig *_Nullable)withFlashMode:(ALFlashMode)flashMode flashAlignment:(ALFlashAlignment)flashAlignment flashImageName:(NSString *_Nullable)flashImageName flashOffset:(CGPoint)flashOffsetParameters
flashAlignment |
The starting location of the flash button in the scan view |
|---|---|
flashImageName |
If provided, the image shown for the flash |
flashOffset |
A point offset positioning the flash button. Used in conjunction with the flash alignment |
Declared In
ALFlashConfig.h