Table of Contents

Class CroppingViewModel

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

Constructors

CroppingViewModel(CroppingScreenConfiguration, ICroppingViewModel, ContourDetector, DocumentAnalysisMode, IDocumentQualityAnalyzer, ScanbotColor, ScanbotColor, ICoroutineContext, ICoroutineContext, Bundle)

[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/document/configuration/CroppingScreenConfiguration;Lio/scanbot/sdk/ui_v2/document/screen/crop/ICroppingViewModel;Lio/scanbot/sdk/core/contourdetector/ContourDetector;Lio/scanbot/sdk/ui_v2/document/configuration/DocumentAnalysisMode;Lio/scanbot/sdk/process/DocumentQualityAnalyzer;Lio/scanbot/sdk/ui_v2/common/ScanbotColor;Lio/scanbot/sdk/ui_v2/common/ScanbotColor;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Landroid/os/Bundle;)V", "")]
public CroppingViewModel(CroppingScreenConfiguration config, ICroppingViewModel scanSession, ContourDetector contourDetector, DocumentAnalysisMode documentAnalysisMode, IDocumentQualityAnalyzer documentQualityAnalyzer, ScanbotColor bottomBarBackground, ScanbotColor topBarBackground, ICoroutineContext ioDispatcher, ICoroutineContext backgroundDispatcher, Bundle arguments)

Parameters

config CroppingScreenConfiguration
scanSession ICroppingViewModel
contourDetector ContourDetector
documentAnalysisMode DocumentAnalysisMode
documentQualityAnalyzer IDocumentQualityAnalyzer
bottomBarBackground ScanbotColor
topBarBackground ScanbotColor
ioDispatcher ICoroutineContext
backgroundDispatcher ICoroutineContext
arguments Bundle

Properties

BackgroundDispatcher

public ICoroutineContext BackgroundDispatcher { get; }

Property Value

ICoroutineContext

BottomBarBackground

public ScanbotColor BottomBarBackground { get; }

Property Value

ScanbotColor

Config

public CroppingScreenConfiguration Config { get; }

Property Value

CroppingScreenConfiguration

ContourDetector

public ContourDetector ContourDetector { get; }

Property Value

ContourDetector

CroppingState

public CroppingState CroppingState { get; }

Property Value

CroppingState

DetectEnabled

public IStateFlow DetectEnabled { get; }

Property Value

IStateFlow

DocumentAnalysisMode

public DocumentAnalysisMode DocumentAnalysisMode { get; }

Property Value

DocumentAnalysisMode

DocumentQualityAnalyzer

public IDocumentQualityAnalyzer DocumentQualityAnalyzer { get; }

Property Value

IDocumentQualityAnalyzer

ImageState

public IMutableStateFlow ImageState { get; }

Property Value

IMutableStateFlow

IoDispatcher

public ICoroutineContext IoDispatcher { get; }

Property Value

ICoroutineContext

Progress

public IMutableStateFlow Progress { get; }

Property Value

IMutableStateFlow

ResetEnabled

public IStateFlow ResetEnabled { get; }

Property Value

IStateFlow

ScanSession

public ICroppingViewModel ScanSession { get; }

Property Value

ICroppingViewModel

TopBarBackground

public ScanbotColor TopBarBackground { get; }

Property Value

ScanbotColor

Methods

ApplyCrop()

[Register("applyCrop", "()V", "")]
public void ApplyCrop()

DetectPolygon()

[Register("detectPolygon", "()V", "")]
public void DetectPolygon()

ResetPolygon()

[Register("resetPolygon", "()V", "")]
public void ResetPolygon()

Rotate()

[Register("rotate", "()V", "")]
public void Rotate()