Class CroppingHostViewModel
[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
CroppingConfigurationdocumentStorage
IDocumentStoragepageFileStorage
PageFileStoragefileIOProcessor
IFileIOProcessordocumentApi
IDocumentApiioDispatcher
ICoroutineContextbackgroundDispatcher
ICoroutineContextmainDispatcher
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
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
CroppingApplied(IContinuation)
[Register("croppingApplied", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
public Object CroppingApplied(IContinuation _completion)
Parameters
_completion
IContinuation
Returns
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