Class CameraConfiguration
- Namespace
- ScanbotSDK.MAUI.Common
- Assembly
- ScanbotSDK.Shared.dll
Configuration of the camera settings to be used while scanning.
public class CameraConfiguration
- Inheritance
-
CameraConfiguration
- Inherited Members
Properties
CameraModule
Which camera module to use on start-up. Default is BACK
public CameraModule CameraModule { get; set; }
Property Value
CameraPreviewMode
Which camera preview mode to use. Default is FILL_IN
public CameraPreviewMode CameraPreviewMode { get; set; }
Property Value
DefaultZoomFactor
The default zoom factor on start-up. Default is 1.0
public double DefaultZoomFactor { get; set; }
Property Value
FlashEnabled
Whether the flash is enabled by default. Default is false
public bool FlashEnabled { get; set; }
Property Value
MinFocusDistanceLock
Whether to lock the focus on the minimum possible distance (device-specific). Default is false
public bool MinFocusDistanceLock { get; set; }
Property Value
OrientationLockMode
Which mode to use when orientation should be locked to landscape or portrait. Default is NONE
public OrientationLockMode OrientationLockMode { get; set; }
Property Value
PinchToZoomEnabled
Whether pinch-to-zoom is enabled. Default is true
public bool PinchToZoomEnabled { get; set; }
Property Value
TouchToFocusEnabled
Whether touch-to-focus is enabled. Android only. Default is false
public bool TouchToFocusEnabled { get; set; }
Property Value
ZoomSteps
The number of zoom steps available to the user.
public double[] ZoomSteps { get; set; }
Property Value
- double[]
Methods
FromJson(string)
public static CameraConfiguration FromJson(string rawJson)
Parameters
rawJson
string
Returns
FromNative(CameraConfiguration)
public static CameraConfiguration FromNative(CameraConfiguration source)
Parameters
source
CameraConfiguration
Returns
ToNative()
public CameraConfiguration ToNative()