Table of Contents

Class ScanbotComposeCameraViewModel

Namespace
IO.Scanbot.Sdk.Ui_v2.Common.Camera
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui_v2/common/camera/ScanbotComposeCameraViewModel", DoNotGenerateAcw = true)]
public class ScanbotComposeCameraViewModel : ViewModel, IJavaObject, IJavaPeerable, IDisposable
Inheritance
ScanbotComposeCameraViewModel
Implements
Derived
Inherited Members

Constructors

ScanbotComposeCameraViewModel(CameraModule, IList<Double>, double, bool, bool, bool, bool, bool, OrientationLockMode, CameraPreviewMode, bool, CapturePhotoQualityPrioritization)

[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/common/CameraModule;Ljava/util/List;DZZZZZLio/scanbot/sdk/ui_v2/common/OrientationLockMode;Lio/scanbot/sdk/ui_v2/common/CameraPreviewMode;ZLio/scanbot/sdk/ui_v2/common/camera/CapturePhotoQualityPrioritization;)V", "")]
public ScanbotComposeCameraViewModel(CameraModule initialCameraModule, IList<Double> initialZoomSteps, double defaultZoomFactor, bool initialFlashEnabled, bool initialMinFocusDistanceLock, bool initialTouchToFocusEnabled, bool initialPinchToZoomEnabled, bool initialPlayFlashOnSnap, OrientationLockMode initialOrientationLockMode, CameraPreviewMode initialCameraPreviewMode, bool flashAvailable, CapturePhotoQualityPrioritization captureQualityPrioritization)

Parameters

initialCameraModule CameraModule
initialZoomSteps IList<Double>
defaultZoomFactor double
initialFlashEnabled bool
initialMinFocusDistanceLock bool
initialTouchToFocusEnabled bool
initialPinchToZoomEnabled bool
initialPlayFlashOnSnap bool
initialOrientationLockMode OrientationLockMode
initialCameraPreviewMode CameraPreviewMode
flashAvailable bool
captureQualityPrioritization CapturePhotoQualityPrioritization

ScanbotComposeCameraViewModel(nint, JniHandleOwnership)

protected ScanbotComposeCameraViewModel(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Properties

Actions

protected IMutableSharedFlow Actions { get; }

Property Value

IMutableSharedFlow

CameraHovered

public IMutableStateFlow CameraHovered { get; }

Property Value

IMutableStateFlow

CameraModule

public IMutableStateFlow CameraModule { get; }

Property Value

IMutableStateFlow

CameraPreviewMode

public IMutableStateFlow CameraPreviewMode { get; }

Property Value

IMutableStateFlow

CaptureQualityPrioritization

public CapturePhotoQualityPrioritization CaptureQualityPrioritization { get; }

Property Value

CapturePhotoQualityPrioritization

FlashButtonEnabled

public IMutableStateFlow FlashButtonEnabled { get; }

Property Value

IMutableStateFlow

FlashEnabled

public IMutableStateFlow FlashEnabled { get; }

Property Value

IMutableStateFlow

MinFocusDistanceLock

public IMutableStateFlow MinFocusDistanceLock { get; }

Property Value

IMutableStateFlow

OrientationLockMode

public IMutableStateFlow OrientationLockMode { get; }

Property Value

IMutableStateFlow

PermissionEnabled

public IMutableStateFlow PermissionEnabled { get; }

Property Value

IMutableStateFlow

PinchToZoomEnabled

public IMutableStateFlow PinchToZoomEnabled { get; }

Property Value

IMutableStateFlow

PreviewEnabled

public IStateFlow PreviewEnabled { get; }

Property Value

IStateFlow

ScreenState

public IMutableStateFlow ScreenState { get; }

Property Value

IMutableStateFlow

SnapAnimationEnabled

public IMutableStateFlow SnapAnimationEnabled { get; }

Property Value

IMutableStateFlow

SupportedZoomRange

public ZoomRange SupportedZoomRange { get; set; }

Property Value

ZoomRange

TakePictureAction

public IMutableSharedFlow TakePictureAction { get; }

Property Value

IMutableSharedFlow

TouchToFocusEnabled

public IMutableStateFlow TouchToFocusEnabled { get; }

Property Value

IMutableStateFlow

UserGuidanceShown

public bool UserGuidanceShown { get; set; }

Property Value

bool

ZoomFactorUi

public IStateFlow ZoomFactorUi { get; }

Property Value

IStateFlow

ZoomRange

public IMutableStateFlow ZoomRange { get; }

Property Value

IMutableStateFlow

ZoomState

public IMutableStateFlow ZoomState { get; }

Property Value

IMutableStateFlow

Methods

OnAction(IUiAction)

[Register("onAction", "(Lio/scanbot/sdk/ui_v2/common/viewmodel/UiAction;)V", "")]
public void OnAction(IUiAction action)

Parameters

action IUiAction

OnPinchToZoom(float)

[Register("onPinchToZoom", "(F)V", "")]
public void OnPinchToZoom(float zoom)

Parameters

zoom float

ProcessAction(IUiAction, IContinuation)

[Register("processAction", "(Lio/scanbot/sdk/ui_v2/common/viewmodel/UiAction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetProcessAction_Lio_scanbot_sdk_ui_v2_common_viewmodel_UiAction_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object ProcessAction(IUiAction action, IContinuation _completion)

Parameters

action IUiAction
_completion IContinuation

Returns

Object

ToggleSnap(IContinuation)

[Register("toggleSnap", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetToggleSnap_Lkotlin_coroutines_Continuation_Handler")]
public virtual Object ToggleSnap(IContinuation _completion)

Parameters

_completion IContinuation

Returns

Object