Class CameraConfig
-
- All Implemented Interfaces:
public class CameraConfig
Schema for SDK Camera Configuration
-
-
Field Summary
Fields Modifier and Type Field Description public String
captureResolution
public String
pictureResolution
public String
defaultCamera
public Boolean
zoomGesture
public Double
focalLength
public Double
zoomRatio
public Double
maxZoomRatio
public Double
maxFocalLength
public List<String>
fallbackCameras
-
Constructor Summary
Constructors Constructor Description CameraConfig()
-
Method Summary
Modifier and Type Method Description String
getCaptureResolution()
The preferred resolution for video capture (720, 720p, 1080, 1080p). void
setCaptureResolution(String captureResolution)
The preferred resolution for video capture (720, 720p, 1080, 1080p). String
getPictureResolution()
The preferred resolution for taking images (720, 720p, 1080, 1080p). void
setPictureResolution(String pictureResolution)
The preferred resolution for taking images (720, 720p, 1080, 1080p). String
getDefaultCamera()
The preferred camera of the device (FRONT, BACK, EXTERNAL, EXTERNAL_FRONT). void
setDefaultCamera(String defaultCamera)
The preferred camera of the device (FRONT, BACK, EXTERNAL, EXTERNAL_FRONT). Boolean
getZoomGesture()
This flag enables or disables the zoom gesture if supported. void
setZoomGesture(Boolean zoomGesture)
This flag enables or disables the zoom gesture if supported. Double
getFocalLength()
The focal length. void
setFocalLength(Double focalLength)
The focal length. Double
getZoomRatio()
The zoom ratio. void
setZoomRatio(Double zoomRatio)
The zoom ratio. Double
getMaxZoomRatio()
The maximum zoom ratio. void
setMaxZoomRatio(Double maxZoomRatio)
The maximum zoom ratio. Double
getMaxFocalLength()
The maximum focal length. void
setMaxFocalLength(Double maxFocalLength)
The maximum focal length. List<String>
getFallbackCameras()
Optional cameras to fall back if the defaultCamera is not found. void
setFallbackCameras(List<String> fallbackCameras)
Optional cameras to fall back if the defaultCamera is not found. String
toString()
int
hashCode()
boolean
equals(Object other)
-
-
Method Detail
-
getCaptureResolution
String getCaptureResolution()
The preferred resolution for video capture (720, 720p, 1080, 1080p). This resolution is used to process images for scanning. (Required)
-
setCaptureResolution
void setCaptureResolution(String captureResolution)
The preferred resolution for video capture (720, 720p, 1080, 1080p). This resolution is used to process images for scanning. (Required)
-
getPictureResolution
String getPictureResolution()
The preferred resolution for taking images (720, 720p, 1080, 1080p).
-
setPictureResolution
void setPictureResolution(String pictureResolution)
The preferred resolution for taking images (720, 720p, 1080, 1080p).
-
getDefaultCamera
String getDefaultCamera()
The preferred camera of the device (FRONT, BACK, EXTERNAL, EXTERNAL_FRONT).
-
setDefaultCamera
void setDefaultCamera(String defaultCamera)
The preferred camera of the device (FRONT, BACK, EXTERNAL, EXTERNAL_FRONT).
-
getZoomGesture
Boolean getZoomGesture()
This flag enables or disables the zoom gesture if supported.
-
setZoomGesture
void setZoomGesture(Boolean zoomGesture)
This flag enables or disables the zoom gesture if supported.
-
getFocalLength
Double getFocalLength()
The focal length.
-
setFocalLength
void setFocalLength(Double focalLength)
The focal length.
-
getZoomRatio
Double getZoomRatio()
The zoom ratio.
-
setZoomRatio
void setZoomRatio(Double zoomRatio)
The zoom ratio.
-
getMaxZoomRatio
Double getMaxZoomRatio()
The maximum zoom ratio.
-
setMaxZoomRatio
void setMaxZoomRatio(Double maxZoomRatio)
The maximum zoom ratio.
-
getMaxFocalLength
Double getMaxFocalLength()
The maximum focal length.
-
setMaxFocalLength
void setMaxFocalLength(Double maxFocalLength)
The maximum focal length.
-
getFallbackCameras
List<String> getFallbackCameras()
Optional cameras to fall back if the defaultCamera is not found.
-
setFallbackCameras
void setFallbackCameras(List<String> fallbackCameras)
Optional cameras to fall back if the defaultCamera is not found.
-
hashCode
int hashCode()
-
-
-
-