Table of Contents

Class DocumentCameraViewModel

Namespace
IO.Scanbot.Sdk.Ui_v2.Document.Screen.Camera
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui_v2/document/screen/camera/DocumentCameraViewModel", DoNotGenerateAcw = true)]
public sealed class DocumentCameraViewModel : ScanbotComposeCameraViewModel, IJavaObject, IJavaPeerable, IDisposable
Inheritance
DocumentCameraViewModel
Implements
Inherited Members

Constructors

DocumentCameraViewModel(CameraScreenConfiguration, DocumentFlowAppearanceConfiguration, ParametricFilter, AcknowledgementMode, ContentResolver, IDocumentCameraSession, ContourDetectorFrameHandler, ContourDetector, IDocumentQualityAnalyzer, bool, ICoroutineContext, ICoroutineContext, ISoundController, Bundle)

[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/document/configuration/CameraScreenConfiguration;Lio/scanbot/sdk/ui_v2/document/configuration/DocumentFlowAppearanceConfiguration;Lio/scanbot/sdk/imagefilters/ParametricFilter;Lio/scanbot/sdk/ui_v2/document/configuration/AcknowledgementMode;Landroid/content/ContentResolver;Lio/scanbot/sdk/ui_v2/document/screen/camera/IDocumentCameraSession;Lio/scanbot/sdk/contourdetector/ContourDetectorFrameHandler;Lio/scanbot/sdk/core/contourdetector/ContourDetector;Lio/scanbot/sdk/process/DocumentQualityAnalyzer;ZLkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lio/scanbot/sdk/util/snap/SoundController;Landroid/os/Bundle;)V", "")]
public DocumentCameraViewModel(CameraScreenConfiguration config, DocumentFlowAppearanceConfiguration appearance, ParametricFilter defaultFilter, AcknowledgementMode acknowledgmentMode, ContentResolver contentResolver, IDocumentCameraSession cameraSession, ContourDetectorFrameHandler frameHandler, ContourDetector contourDetector, IDocumentQualityAnalyzer documentQualityAnalyzer, bool flashAvailable, ICoroutineContext ioDispatcher, ICoroutineContext backgroundDispatcher, ISoundController soundController, Bundle arguments)

Parameters

config CameraScreenConfiguration
appearance DocumentFlowAppearanceConfiguration
defaultFilter ParametricFilter
acknowledgmentMode AcknowledgementMode
contentResolver ContentResolver
cameraSession IDocumentCameraSession
frameHandler ContourDetectorFrameHandler
contourDetector ContourDetector
documentQualityAnalyzer IDocumentQualityAnalyzer
flashAvailable bool
ioDispatcher ICoroutineContext
backgroundDispatcher ICoroutineContext
soundController ISoundController
arguments Bundle

Properties

Appearance

public DocumentFlowAppearanceConfiguration Appearance { get; }

Property Value

DocumentFlowAppearanceConfiguration

AutoSnappingEnabled

public IStateFlow AutoSnappingEnabled { get; }

Property Value

IStateFlow

Config

public CameraScreenConfiguration Config { get; }

Property Value

CameraScreenConfiguration

ContourDetector

public ContourDetector ContourDetector { get; }

Property Value

ContourDetector

DetectionResultFlow

public IMutableStateFlow DetectionResultFlow { get; }

Property Value

IMutableStateFlow

DrawPolygon

public IStateFlow DrawPolygon { get; }

Property Value

IStateFlow

FrameHandler

public ContourDetectorFrameHandler FrameHandler { get; }

Property Value

ContourDetectorFrameHandler

FrameSizeFlow

public IMutableSharedFlow FrameSizeFlow { get; }

Property Value

IMutableSharedFlow

IntroDialogButtonEnabled

public IMutableStateFlow IntroDialogButtonEnabled { get; }

Property Value

IMutableStateFlow

LastPreviewUriToDisplay

public IStateFlow LastPreviewUriToDisplay { get; }

Property Value

IStateFlow

PagesCount

public IStateFlow PagesCount { get; }

Property Value

IStateFlow

ShowPagePreviewCounter

public IMutableStateFlow ShowPagePreviewCounter { get; }

Property Value

IMutableStateFlow

ShowProgress

public IStateFlow ShowProgress { get; }

Property Value

IStateFlow

SnapPreviewBitmap

public IStateFlow SnapPreviewBitmap { get; }

Property Value

IStateFlow

UiSteps

public IStateFlow UiSteps { get; }

Property Value

IStateFlow

Methods

OnAutoSnappingTriggered()

[Register("onAutoSnappingTriggered", "()V", "")]
public void OnAutoSnappingTriggered()

OnImportClicked()

[Register("onImportClicked", "()V", "")]
public void OnImportClicked()

OnIntroIconClicked()

[Register("onIntroIconClicked", "()V", "")]
public void OnIntroIconClicked()

OnKeyCode(KeyEvent)

[Register("onKeyCode", "(Landroid/view/KeyEvent;)Z", "")]
public bool OnKeyCode(KeyEvent keyEvent)

Parameters

keyEvent KeyEvent

Returns

bool

OnPagesPreviewClicked()

[Register("onPagesPreviewClicked", "()V", "")]
public void OnPagesPreviewClicked()

OnPermissionDeny()

[Register("onPermissionDeny", "()V", "")]
public void OnPermissionDeny()

OnPictureTaken(byte[], CaptureInfo)

[Register("onPictureTaken", "([BLio/scanbot/sdk/camera/CaptureInfo;)V", "")]
public void OnPictureTaken(byte[] image, CaptureInfo data)

Parameters

image byte[]
data CaptureInfo

OnResultShown()

[Register("onResultShown", "()V", "")]
public void OnResultShown()

OnSnapClicked()

[Register("onSnapClicked", "()V", "")]
public void OnSnapClicked()

OnSnapModeClicked()

[Register("onSnapModeClicked", "()V", "")]
public void OnSnapModeClicked()

OnTorchClicked()

[Register("onTorchClicked", "()V", "")]
public void OnTorchClicked()

RegisterFrameHandlers(ScanbotCameraXView)

[Register("registerFrameHandlers", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public void RegisterFrameHandlers(ScanbotCameraXView camera)

Parameters

camera ScanbotCameraXView