CameraConfiguration class

Configuration of the camera settings to be used while scanning.

Constructors

CameraConfiguration.new({CameraModule cameraModule = CameraModule.BACK, List<double>? zoomSteps, double defaultZoomFactor = 1.0, bool flashEnabled = false, bool minFocusDistanceLock = false, bool touchToFocusEnabled = false, bool pinchToZoomEnabled = true, OrientationLockMode orientationLockMode = OrientationLockMode.NONE, CameraPreviewMode cameraPreviewMode = CameraPreviewMode.FILL_IN})
CameraConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

cameraModule CameraModule
Determines which camera module to use on start-up.
getter/setter pair
cameraPreviewMode CameraPreviewMode
Determines which camera preview mode to use.
getter/setter pair
defaultZoomFactor double
The default zoom factor on start-up.
getter/setter pair
flashEnabled bool
Determines whether the flash is enabled on start-up.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
minFocusDistanceLock bool
Determines whether to lock the focus at the minimum possible distance (device-specific).
getter/setter pair
orientationLockMode OrientationLockMode
Determines which mode to use when orientation should be locked to landscape or portrait.
getter/setter pair
pinchToZoomEnabled bool
Determines whether pinch-to-zoom is enabled or not.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
touchToFocusEnabled bool
Determines whether touch-to-focus is enabled or not. Android only.
getter/setter pair
zoomSteps List<double>
The zoom steps available to the user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({ToJsonConfiguration? config}) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited