Table of Contents

Class BaseBarcodeViewModel

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

Constructors

BaseBarcodeViewModel(CameraConfiguration, BarcodeNativeConfiguration, ICoroutineContext, bool, ISoundController)

[Register(".ctor", "(Lio/scanbot/sdk/ui_v2/common/CameraConfiguration;Lio/scanbot/sdk/ui_v2/barcode/configuration/BarcodeNativeConfiguration;Lkotlin/coroutines/CoroutineContext;ZLio/scanbot/sdk/util/snap/SoundController;)V", "")]
public BaseBarcodeViewModel(CameraConfiguration cameraConfiguration, BarcodeNativeConfiguration nativeConfiguration, ICoroutineContext dispatcher, bool flashAvailable, ISoundController beeper)

Parameters

cameraConfiguration CameraConfiguration
nativeConfiguration BarcodeNativeConfiguration
dispatcher ICoroutineContext
flashAvailable bool
beeper ISoundController

BaseBarcodeViewModel(nint, JniHandleOwnership)

protected BaseBarcodeViewModel(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Fields

MappingTimeout

[Register("mappingTimeout")]
public const long MappingTimeout = 5000

Field Value

long

Properties

BarcodeInfoMapping

protected virtual BarcodeInfoMapping BarcodeInfoMapping { get; }

Property Value

BarcodeInfoMapping

BarcodeItemMapper

protected virtual IBarcodeItemMapper BarcodeItemMapper { get; }

Property Value

IBarcodeItemMapper

BeepJob

public IJob BeepJob { get; set; }

Property Value

IJob

Configuration

public abstract BarcodeScannerConfiguration Configuration { get; }

Property Value

BarcodeScannerConfiguration

EnableContinuousScanning

protected bool EnableContinuousScanning { get; }

Property Value

bool

FrameHandler

public abstract BarcodeDetectorFrameHandler FrameHandler { get; }

Property Value

BarcodeDetectorFrameHandler

FrameHandlerEnabled

protected IMutableStateFlow FrameHandlerEnabled { get; }

Property Value

IMutableStateFlow

FrameSizeFlow

public IMutableSharedFlow FrameSizeFlow { get; }

Property Value

IMutableSharedFlow

InitialCount

protected virtual int InitialCount { get; }

Property Value

int

NativeConfiguration

public BarcodeNativeConfiguration NativeConfiguration { get; }

Property Value

BarcodeNativeConfiguration

ResultFlow

public IMutableSharedFlow ResultFlow { get; }

Property Value

IMutableSharedFlow

ScreenSizeFrameHandler

public FrameHandler ScreenSizeFrameHandler { get; }

Property Value

FrameHandler

Methods

GetUniqueBarcodeUUID(BarcodeItem)

[Register("getUniqueBarcodeUUID", "(Lio/scanbot/sdk/barcode/entity/BarcodeItem;)Ljava/lang/String;", "GetGetUniqueBarcodeUUID_Lio_scanbot_sdk_barcode_entity_BarcodeItem_Handler")]
protected virtual string GetUniqueBarcodeUUID(BarcodeItem item)

Parameters

item BarcodeItem

Returns

string

MapDataForBarcodeItem(BarcodeItem)

[Register("mapDataForBarcodeItem", "(Lio/scanbot/sdk/barcode/entity/BarcodeItem;)V", "")]
public void MapDataForBarcodeItem(BarcodeItem barcodeItem)

Parameters

barcodeItem BarcodeItem

OnArBarcodeItemClick(BarcodeItem)

[Register("onArBarcodeItemClick", "(Lio/scanbot/sdk/barcode/entity/BarcodeItem;)V", "GetOnArBarcodeItemClick_Lio_scanbot_sdk_barcode_entity_BarcodeItem_Handler")]
public abstract void OnArBarcodeItemClick(BarcodeItem barcodeItem)

Parameters

barcodeItem BarcodeItem

OnBarcodeDataError(string, IContinuation)

[Register("onBarcodeDataError", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetOnBarcodeDataError_Ljava_lang_String_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object OnBarcodeDataError(string uuid, IContinuation _completion)

Parameters

uuid string
_completion IContinuation

Returns

Object

OnBarcodeDataLoaded(string, IContinuation)

[Register("onBarcodeDataLoaded", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetOnBarcodeDataLoaded_Ljava_lang_String_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object OnBarcodeDataLoaded(string uuid, IContinuation _completion)

Parameters

uuid string
_completion IContinuation

Returns

Object

OnDeleteBarcode(string, IContinuation)

[Register("onDeleteBarcode", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetOnDeleteBarcode_Ljava_lang_String_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object OnDeleteBarcode(string uuid, IContinuation _completion)

Parameters

uuid string
_completion IContinuation

Returns

Object

OnRegisterExpectedBarcode(ExpectedBarcode, IContinuation)

[Register("onRegisterExpectedBarcode", "(Lio/scanbot/sdk/ui_v2/barcode/configuration/ExpectedBarcode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetOnRegisterExpectedBarcode_Lio_scanbot_sdk_ui_v2_barcode_configuration_ExpectedBarcode_Lkotlin_coroutines_Continuation_Handler")]
protected virtual Object OnRegisterExpectedBarcode(ExpectedBarcode expectedBarcode, IContinuation _completion)

Parameters

expectedBarcode ExpectedBarcode
_completion IContinuation

Returns

Object

OnRetryErrorClicked(IContinuation)

[Register("onRetryErrorClicked", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "GetOnRetryErrorClicked_Lkotlin_coroutines_Continuation_Handler")]
public virtual Object OnRetryErrorClicked(IContinuation _completion)

Parameters

_completion IContinuation

Returns

Object

PlayBleepSound(IContinuation)

[Register("playBleepSound", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "")]
protected Object PlayBleepSound(IContinuation _completion)

Parameters

_completion IContinuation

Returns

Object

ResetDetectedBarcodes()

[Register("resetDetectedBarcodes", "()V", "GetResetDetectedBarcodesHandler")]
protected virtual void ResetDetectedBarcodes()

ResetMapping()

[Register("resetMapping", "()V", "")]
protected void ResetMapping()

SetInitialScanDelay()

[Register("setInitialScanDelay", "()V", "")]
protected void SetInitialScanDelay()

SetUpAutoCancelTimeout()

[Register("setUpAutoCancelTimeout", "()V", "")]
protected void SetUpAutoCancelTimeout()

SetupBeeper(Sound, bool)

[Register("setupBeeper", "(Lio/scanbot/sdk/ui_v2/common/Sound;Z)V", "")]
protected void SetupBeeper(Sound beepConfig, bool vibrationEnabled)

Parameters

beepConfig Sound
vibrationEnabled bool

ShouldHighlight(BarcodeItem)

[Register("shouldHighlight", "(Lio/scanbot/sdk/barcode/entity/BarcodeItem;)Z", "GetShouldHighlight_Lio_scanbot_sdk_barcode_entity_BarcodeItem_Handler")]
public virtual bool ShouldHighlight(BarcodeItem barcodeItem)

Parameters

barcodeItem BarcodeItem

Returns

bool