ALCameraConfig Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | ALJSONStringRepresentable |
| Declared in | ALCameraConfig.h |
defaultCamera
Camera to be used for scanning. Could be “FRONT” or “BACK”
@property (nonatomic, readonly, nullable) NSString *defaultCameraDeclared In
ALCameraConfig.h
captureResolution
Resolution in which the camera operates. Currently only 1080p is supported.
@property (nonatomic, readonly) ALCaptureViewResolution captureResolutionDeclared In
ALCameraConfig.h
pictureResolution
Picture resolution in which the camera operates. Currently only 1080p is supported.
@property (nonatomic, readonly) ALPictureResolution pictureResolutionDeclared In
ALCameraConfig.h
zoomFactor
Camera focal length (default: 1)
@property (nonatomic, readonly) CGFloat zoomFactorDeclared In
ALCameraConfig.h
maxZoomFactor
Camera max focal length. Default: 0 => Device maxAvailableVideoZoom
@property (nonatomic, readonly) CGFloat maxZoomFactorDeclared In
ALCameraConfig.h
zoomGesture
Determines whether the pinch-to-zoom gesture is enabled. Defaults to false
@property (nonatomic, readonly) BOOL zoomGestureDeclared In
ALCameraConfig.h
– initWithJSONDictionary:error:
Initializes an ALCameraConfig with an NSDictionary representing the JSON config object
- (instancetype _Nullable)initWithJSONDictionary:(NSDictionary *_Nonnull)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 ALCameraConfig
Declared In
ALCameraConfig.h
+ withJSONDictionary:
Creates an ALCameraConfig with an NSDictionary representing the JSON config object
+ (instancetype _Nullable)withJSONDictionary:(NSDictionary *_Nonnull)JSONDictionaryParameters
JSONDictionary |
NSDictionary representing the JSON config object |
|---|
Return Value
an instance of ALCameraConfig
Declared In
ALCameraConfig.h
+ defaultCameraConfig
Creates an ALCameraConfig with default values, suitable for further custimization
+ (instancetype)defaultCameraConfigReturn Value
an instance of ALCameraConfig
Declared In
ALCameraConfig.h
– initWithDefaultCamera:captureViewResolution:pictureResolution:zoomFactor:maxZoomFactor:zoomGesture:
Initializes an ALCameraConfig object.
- (instancetype)initWithDefaultCamera:(NSString *)defaultCamera captureViewResolution:(ALCaptureViewResolution)captureResolution pictureResolution:(ALPictureResolution)pictureResolution zoomFactor:(CGFloat)zoomFactor maxZoomFactor:(CGFloat)maxZoomFactor zoomGesture:(BOOL)zoomGestureParameters
defaultCamera |
Camera to be used for scanning. Could be “FRONT” or “BACK” |
|---|---|
captureResolution |
Resolution in which the camera operates. Currently only 1080p is supported. |
pictureResolution |
Picture resolution in which the camera operates. Currently only 1080p is supported. |
zoomFactor |
Camera focal length (default: 1) |
maxZoomFactor |
Camera max focal length. Default: 0 => Device maxAvailableVideoZoom |
zoomGesture |
Determines whether the pinch-to-zoom gesture is enabled. Defaults to false |
Declared In
ALCameraConfig.h
+ withDefaultCamera:captureViewResolution:pictureResolution:zoomFactor:maxZoomFactor:zoomGesture:
Creates an ALCameraConfig object.
+ (ALCameraConfig *)withDefaultCamera:(NSString *)defaultCamera captureViewResolution:(ALCaptureViewResolution)captureResolution pictureResolution:(ALPictureResolution)pictureResolution zoomFactor:(CGFloat)zoomFactor maxZoomFactor:(CGFloat)maxZoomFactor zoomGesture:(BOOL)zoomGestureParameters
defaultCamera |
Camera to be used for scanning. Could be “FRONT” or “BACK” |
|---|---|
captureResolution |
Resolution in which the camera operates. Currently only 1080p is supported. |
pictureResolution |
Picture resolution in which the camera operates. Currently only 1080p is supported. |
zoomFactor |
Camera focal length (default: 1) |
maxZoomFactor |
Camera max focal length. Default: 0 => Device maxAvailableVideoZoom |
zoomGesture |
Determines whether the pinch-to-zoom gesture is enabled. Defaults to false |
Declared In
ALCameraConfig.h