Class CheckCameraViewModel
- Namespace
- IO.Scanbot.Sdk.UI.View.Check
- Assembly
- DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui/view/check/CheckCameraViewModel", DoNotGenerateAcw = true)]
public sealed class CheckCameraViewModel : ViewModel, IRouter, ICheckRecognizerView.IViewModel, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
ViewModel
CheckCameraViewModel
- Implements
-
- Inherited Members
-
Constructors
CheckCameraViewModel(ICheckRecognizer, ContourDetector, IDispatchersProvider, IResultRepository)
[Register(".ctor", "(Lio/scanbot/sdk/check/CheckRecognizer;Lio/scanbot/sdk/core/contourdetector/ContourDetector;Lio/scanbot/sdk/ui/coroutines/IDispatchersProvider;Lio/scanbot/sdk/ui/result/ResultRepository;)V", "")]
public CheckCameraViewModel(ICheckRecognizer checkRecognizer, ContourDetector contourDetector, IDispatchersProvider dispatchersProvider, IResultRepository resultRepository)
Parameters
checkRecognizer
ICheckRecognizer
contourDetector
ContourDetector
dispatchersProvider
IDispatchersProvider
resultRepository
IResultRepository
Fields
FirstHintDelayTime
[Register("FIRST_HINT_DELAY_TIME")]
public const int FirstHintDelayTime = 3000
Field Value
- int
Properties
CameraOpened
public IStateFlow CameraOpened { get; }
Property Value
- IStateFlow
CaptureHighResolutionImage
public IStateFlow CaptureHighResolutionImage { get; }
Property Value
- IStateFlow
CheckRecognizer
public ICheckRecognizer CheckRecognizer { get; }
Property Value
- ICheckRecognizer
ContourDetector
public ContourDetector ContourDetector { get; }
Property Value
- ContourDetector
Flash
public IStateFlow Flash { get; }
Property Value
- IStateFlow
Hint
public IStateFlow Hint { get; }
Property Value
- IStateFlow
HintValues
public CheckUserGuidanceStrings HintValues { get; set; }
Property Value
- CheckUserGuidanceStrings
NavEvents
public ISharedFlow NavEvents { get; }
Property Value
- ISharedFlow
PictureProcessing
public IStateFlow PictureProcessing { get; }
Property Value
- IStateFlow
ShouldProcessFrames
public IStateFlow ShouldProcessFrames { get; }
Property Value
- IStateFlow
Methods
Navigate(Object, IContinuation)
[Register("navigate", "(Lio/scanbot/sdk/ui/utils/Event;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
[JavaTypeParameters(new string[] { "T extends io.scanbot.sdk.ui.utils.Event" })]
public Object Navigate(Object e, IContinuation _completion)
Parameters
e
Object
_completion
IContinuation
Returns
- Object
OnCancelClicked()
[Register("onCancelClicked", "()V", "")]
public void OnCancelClicked()
OnCheckRecognized(FrameHandlerResult)
[Register("onCheckRecognized", "(Lio/scanbot/sdk/camera/FrameHandlerResult;)V", "")]
public void OnCheckRecognized(FrameHandlerResult result)
Parameters
result
FrameHandlerResult
OnCheckSnapped(byte[], CaptureInfo)
[Register("onCheckSnapped", "([BLio/scanbot/sdk/camera/CaptureInfo;)V", "")]
public void OnCheckSnapped(byte[] image, CaptureInfo captureInfo)
Parameters
image
byte[]
captureInfo
CaptureInfo
OnFlashClicked()
[Register("onFlashClicked", "()V", "")]
public void OnFlashClicked()
OnSnapping()
[Register("onSnapping", "()V", "")]
public void OnSnapping()
Pause()
[Register("pause", "()V", "")]
public void Pause()
SetAcceptedCheckStandards(IList<RootDocumentType>)
[Register("setAcceptedCheckStandards", "(Ljava/util/List;)V", "")]
public void SetAcceptedCheckStandards(IList<RootDocumentType> acceptedCheckStandards)
Parameters
acceptedCheckStandards
IList<RootDocumentType>
SetCaptureHighResolutionImage(bool)
[Register("setCaptureHighResolutionImage", "(Z)V", "")]
public void SetCaptureHighResolutionImage(bool captureHighResolutionImage)
Parameters
captureHighResolutionImage
bool
SetCaptureHighResolutionImage(IMutableStateFlow)
[Register("setCaptureHighResolutionImage", "(Lkotlinx/coroutines/flow/MutableStateFlow;)V", "")]
public void SetCaptureHighResolutionImage(IMutableStateFlow value)
Parameters
value
IMutableStateFlow
SetFlashEnabled(bool)
[Register("setFlashEnabled", "(Z)V", "")]
public void SetFlashEnabled(bool flashEnabled)
Parameters
flashEnabled
bool