Table of Contents

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

CameraModule

CameraPreviewMode

Which camera preview mode to use. Default is FILL_IN

public CameraPreviewMode CameraPreviewMode { get; set; }

Property Value

CameraPreviewMode

DefaultZoomFactor

The default zoom factor on start-up. Default is 1.0

public double DefaultZoomFactor { get; set; }

Property Value

double

FlashEnabled

Whether the flash is enabled by default. Default is false

public bool FlashEnabled { get; set; }

Property Value

bool

MinFocusDistanceLock

Whether to lock the focus on the minimum possible distance (device-specific). Default is false

public bool MinFocusDistanceLock { get; set; }

Property Value

bool

OrientationLockMode

Which mode to use when orientation should be locked to landscape or portrait. Default is NONE

public OrientationLockMode OrientationLockMode { get; set; }

Property Value

OrientationLockMode

PinchToZoomEnabled

Whether pinch-to-zoom is enabled. Default is true

public bool PinchToZoomEnabled { get; set; }

Property Value

bool

TouchToFocusEnabled

Whether touch-to-focus is enabled. Android only. Default is false

public bool TouchToFocusEnabled { get; set; }

Property Value

bool

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

CameraConfiguration

FromNative(CameraConfiguration)

public static CameraConfiguration FromNative(CameraConfiguration source)

Parameters

source CameraConfiguration

Returns

CameraConfiguration

ToNative()

public CameraConfiguration ToNative()

Returns

CameraConfiguration