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.
Default is BACK
getter/setter pair
- cameraPreviewMode ↔ CameraPreviewMode
-
Determines which camera preview mode to use.
Default is FILL_IN
getter/setter pair
- defaultZoomFactor ↔ double
-
The default zoom factor on start-up.
Default is 1.0
getter/setter pair
- flashEnabled ↔ bool
-
Determines whether the flash is enabled on start-up.
Default is false
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).
Default is false
getter/setter pair
- orientationLockMode ↔ OrientationLockMode
-
Determines which mode to use when orientation should be locked to landscape or portrait.
Default is NONE
getter/setter pair
- pinchToZoomEnabled ↔ bool
-
Determines whether pinch-to-zoom is enabled or not.
Default is true
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.
Default is false
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(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited