Table of Contents

Interface IBarcodeHandler

Namespace
TechnologySolutions.Rfid.AsciiProtocol.Extensions
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

Provides an interface to represent a barcode scanner which can be triggered programatically or via an external trigger

public interface IBarcodeHandler

Properties

IsBarcodeScanningEnabled

Gets a value indicating whether barcode scanning is enabled

bool IsBarcodeScanningEnabled { get; }

Property Value

bool

IsScanPending

Gets a value indicating whether a BarcodeScanned event is expected

bool IsScanPending { get; }

Property Value

bool

Remarks

This returns true one InitiateScan() has been called and a neither of the BarcodeScanned event has been raised or the scan cancelled with CancelScan()elScan"/>

Methods

CancelScan()

Cancels a pending scan if IsScanPending

bool CancelScan()

Returns

bool

True if IsScanPending and it was cancelled

DisableBarcodeScanning()

Disables barcode scanning from this source

void DisableBarcodeScanning()

EnableBarcodeScanning()

Enables barcode scanning from this source

void EnableBarcodeScanning()

InitiateScan()

Initiates a barcode scan

bool InitiateScan()

Returns

bool

True if the barcode scan is initiated

Events

BarcodeScanned

Raised when a barcode is scanned

event EventHandler<BarcodeEventArgs> BarcodeScanned

Event Type

EventHandler<BarcodeEventArgs>