Class CroppingHostViewModel
- Namespace
- IO.Scanbot.Sdk.Ui_v2.Document.Screen
- Assembly
- DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui_v2/document/screen/CroppingHostViewModel", DoNotGenerateAcw = true)]
public sealed class CroppingHostViewModel : ViewModel, IProgressAware, ICroppingViewModel, ICanGoBack, IDocumentHolder, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
CroppingHostViewModel
- Implements
-
- Inherited Members
-
Constructors
CroppingHostViewModel(CroppingConfiguration, IDocumentStorage, PageFileStorage, IFileIOProcessor, IDocumentApi, ICoroutineContext, ICoroutineContext, ICoroutineContext)
[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/document/configuration/CroppingConfiguration;Lio/scanbot/sdk/persistence/document/DocumentStorage;Lio/scanbot/sdk/persistence/page/PageFileStorage;Lio/scanbot/sdk/persistence/fileio/FileIOProcessor;Lio/scanbot/sdk/docprocessing/DocumentApi;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;)V", "")]
public CroppingHostViewModel(CroppingConfiguration configuration, IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, IDocumentApi documentApi, ICoroutineContext ioDispatcher, ICoroutineContext backgroundDispatcher, ICoroutineContext mainDispatcher)
Parameters
configuration CroppingConfiguration
documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor
documentApi IDocumentApi
ioDispatcher ICoroutineContext
backgroundDispatcher ICoroutineContext
mainDispatcher ICoroutineContext
Properties
AlertDialog
public IMutableStateFlow AlertDialog { get; }
Property Value
- IMutableStateFlow
CloseAction
public IMutableSharedFlow CloseAction { get; }
Property Value
- IMutableSharedFlow
Document
public Document Document { get; }
Property Value
- Document
ProgressShowing
public IStateFlow ProgressShowing { get; }
Property Value
- IStateFlow
SubmitAction
public IMutableSharedFlow SubmitAction { get; }
Property Value
- IMutableSharedFlow
Methods
CloseCameraOnDocumentNotExist(string, IContinuation)
[Register("closeCameraOnDocumentNotExist", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
public Object CloseCameraOnDocumentNotExist(string uuid, IContinuation _completion)
Parameters
uuid string
_completion IContinuation
Returns
- Object
CroppingApplied(IContinuation)
[Register("croppingApplied", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
public Object CroppingApplied(IContinuation _completion)
Parameters
_completion IContinuation
Returns
- Object
DocumentError(string)
[Register("documentError", "(Ljava/lang/String;)V", "")]
public void DocumentError(string error)
Parameters
error string
GoBack()
[Register("goBack", "()V", "")]
public void GoBack()
HideProgress()
[Register("hideProgress", "()V", "")]
public void HideProgress()
ShowProgress(IProgressType)
[Register("showProgress", "(Lio/scanbot/sdk/ui_v2/document/screen/ProgressType;)V", "")]
public void ShowProgress(IProgressType progressType)
Parameters
progressType IProgressType
UpdateCurrentPreview(IContinuation)
[Register("updateCurrentPreview", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
public Object UpdateCurrentPreview(IContinuation _completion)
Parameters
_completion IContinuation
Returns
- Object