Table of Contents

Class BarcodeDetectorEventArgs

Namespace
VisioForge.Core.Types.X
Assembly
VisioForge.Core.dll

Provides data for barcode detection events within the VisioForge X engine. This class encapsulates information about the detected barcode, including its type, value, and the timestamp of detection.

public class BarcodeDetectorEventArgs : EventArgs

Inheritance

Inherited Members

Examples

// Assume an event handler is registered for a barcode detection event from the X engine.
public void OnBarcodeDetectedX(object sender, BarcodeDetectorEventArgs e)
{
    Console.WriteLine($"Barcode Detected (X Engine)! Type: {e.BarcodeType}, Value: {e.Value}");
    Console.WriteLine($"  Detected at timestamp: {e.Timestamp}");

    // You can use this information to update UI, perform database lookups, etc.
    if (e.BarcodeType == "QR_CODE")
    {
        Console.WriteLine("  This is a QR Code!");
    }
}

Remarks

This event argument is used when a barcode is successfully identified in a video frame or image processed by the X engine. It allows applications to react to barcode detections, such as logging the information, triggering actions, or displaying results.

Constructors

BarcodeDetectorEventArgs(string, string, TimeSpan)

Initializes a new instance of the VisioForge.Core.Types.X.BarcodeDetectorEventArgs class.

public BarcodeDetectorEventArgs(string barcodeType, string value, TimeSpan timeStamp)

Parameters

barcodeType string

The type of the detected barcode.

value string

The decoded string value of the barcode.

timeStamp TimeSpan

The timestamp of the detection.

Properties

BarcodeType

Gets the type of the detected barcode (e.g., "QR_CODE", "EAN_13", "CODE_39").

public string BarcodeType { get; }

Property Value

string

Timestamp

Gets the timestamp of the video frame or image at which the barcode was detected.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan

Value

Gets the decoded string value of the barcode.

public string Value { get; }

Property Value

string