Table of Contents

Class ScanbotComposeCameraViewModel

Namespace
IO.Scanbot.Sdk.Ui_v2.Common.Camera
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui_v2/common/camera/ScanbotComposeCameraViewModel", DoNotGenerateAcw = true)]
public class ScanbotComposeCameraViewModel : ViewModel, IJavaObject, IJavaPeerable, IDisposable
Inheritance
ViewModel
ScanbotComposeCameraViewModel
Implements
Derived
Inherited Members
ViewModel.OnCleared()

Constructors

ScanbotComposeCameraViewModel(CameraConfiguration, bool)

[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/common/CameraConfiguration;Z)V", "")]
public ScanbotComposeCameraViewModel(CameraConfiguration defaultConfiguration, bool flashAvailable)

Parameters

defaultConfiguration CameraConfiguration
flashAvailable bool

ScanbotComposeCameraViewModel(nint, JniHandleOwnership)

protected ScanbotComposeCameraViewModel(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Properties

Actions

protected IMutableSharedFlow Actions { get; }

Property Value

IMutableSharedFlow

CameraHovered

public IMutableStateFlow CameraHovered { get; }

Property Value

IMutableStateFlow

CameraModule

public IMutableStateFlow CameraModule { get; }

Property Value

IMutableStateFlow

CameraPreviewMode

public IMutableStateFlow CameraPreviewMode { get; }

Property Value

IMutableStateFlow

FlashButtonEnabled

public IMutableStateFlow FlashButtonEnabled { get; }

Property Value

IMutableStateFlow

FlashEnabled

public IMutableStateFlow FlashEnabled { get; }

Property Value

IMutableStateFlow

MinFocusDistanceLock

public IMutableStateFlow MinFocusDistanceLock { get; }

Property Value

IMutableStateFlow

OrientationLockMode

public IMutableStateFlow OrientationLockMode { get; }

Property Value

IMutableStateFlow

PermissionEnabled

public IMutableStateFlow PermissionEnabled { get; }

Property Value

IMutableStateFlow

PinchToZoomEnabled

public IMutableStateFlow PinchToZoomEnabled { get; }

Property Value

IMutableStateFlow

PreviewEnabled

public IStateFlow PreviewEnabled { get; }

Property Value

IStateFlow

ScreenState

public IMutableStateFlow ScreenState { get; }

Property Value

IMutableStateFlow

SupportedZoomRange

public ZoomRange SupportedZoomRange { get; set; }

Property Value

ZoomRange

TouchToFocusEnabled

public IMutableStateFlow TouchToFocusEnabled { get; }

Property Value

IMutableStateFlow

ZoomFactorUi

public IStateFlow ZoomFactorUi { get; }

Property Value

IStateFlow

ZoomRange

public IMutableStateFlow ZoomRange { get; }

Property Value

IMutableStateFlow

ZoomState

public IMutableStateFlow ZoomState { get; }

Property Value

IMutableStateFlow

Methods

OnAction(IUiAction)

[Register("onAction", "(Lio/scanbot/sdk/ui_v2/common/viewmodel/UiAction;)V", "")]
public void OnAction(IUiAction action)

Parameters

action IUiAction

OnPinchToZoom(float)

[Register("onPinchToZoom", "(F)V", "")]
public void OnPinchToZoom(float zoom)

Parameters

zoom float

ProcessAction(IUiAction, IContinuation)

[Register("processAction", "(Lio/scanbot/sdk/ui_v2/common/viewmodel/UiAction;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetProcessAction_Lio_scanbot_sdk_ui_v2_common_viewmodel_UiAction_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object ProcessAction(IUiAction action, IContinuation _completion)

Parameters

action IUiAction
_completion IContinuation

Returns

Object