Table of Contents

Class RecognitionProcessorBarcodeResult

Namespace
CapCognition.Maui.BarcodeScanning
Assembly
CapCognition.Maui.BarcodeScanning.dll
public class RecognitionProcessorBarcodeResult : RecognitionProcessorResult
Inheritance
RecognitionProcessorBarcodeResult
Inherited Members

Constructors

RecognitionProcessorBarcodeResult(BarcodeRecognitionOptions)

public RecognitionProcessorBarcodeResult(BarcodeRecognitionOptions options)

Parameters

options BarcodeRecognitionOptions

Properties

Bounds

Bounds of the barcode result.

public RectangleF Bounds { get; set; }

Property Value

RectangleF

Email

When the barcode result is an email, this property contains the parsed information.

public RecognizedBarcodeContactInformation.Email? Email { get; set; }

Property Value

RecognizedBarcodeContactInformation.Email

Format

Format of the barcode result.

public BarcodeRecognitionOptions.BarcodeFormat Format { get; set; }

Property Value

BarcodeRecognitionOptions.BarcodeFormat

Phone

When the barcode result is a phone number, this property contains the parsed information.

public RecognizedBarcodeContactInformation.Phone? Phone { get; set; }

Property Value

RecognizedBarcodeContactInformation.Phone

RawBytes

The raw bytes of the barcode result.

public byte[]? RawBytes { get; set; }

Property Value

byte[]

RecognizedBarcodeCalendarEvent

When the barcode result is a calendar event, this property contains the parsed information.

public RecognizedBarcodeCalendarEventInformation? RecognizedBarcodeCalendarEvent { get; set; }

Property Value

RecognizedBarcodeCalendarEventInformation

RecognizedBarcodeContact

When the barcode result is a contact information, this property contains the parsed information.

public RecognizedBarcodeContactInformation? RecognizedBarcodeContact { get; set; }

Property Value

RecognizedBarcodeContactInformation

RecognizedBarcodeGeoPoint

When the barcode result is a geo point, this property contains the parsed information.

public RecognizedBarcodeGeoPointInformation? RecognizedBarcodeGeoPoint { get; set; }

Property Value

RecognizedBarcodeGeoPointInformation

RecognizedBarcodeSms

When the barcode result is an SMS, this property contains the parsed information.

public RecognizedBarcodeSMSInformation? RecognizedBarcodeSms { get; set; }

Property Value

RecognizedBarcodeSMSInformation

RecognizedBarcodeUrl

When the barcode result is a URL, this property contains the parsed information.

public RecognizedBarcodeUrl? RecognizedBarcodeUrl { get; set; }

Property Value

RecognizedBarcodeUrl

RecognizedBarcodeWifiInfo

When the barcode result is a wifi information, this property contains the parsed information.

public RecognizedBarcodeWifiInformation? RecognizedBarcodeWifiInfo { get; set; }

Property Value

RecognizedBarcodeWifiInformation

Type

The parsed type of the raw result value of type RecognitionProcessorBarcodeResult.ValueType.

public RecognitionProcessorBarcodeResult.ValueType Type { get; set; }

Property Value

RecognitionProcessorBarcodeResult.ValueType

Value

The value of the barcode result as string.

public string? Value { get; set; }

Property Value

string

Methods

DrawResult(SKCanvas)

Draws the result on the given canvas

public override void DrawResult(SKCanvas canvas)

Parameters

canvas SKCanvas

The canvas to paint on the result

ParseValue()

Parse the value of the barcode result. Call this method the interpret the value. Note: The following properties will be set after calling this method:

public void ParseValue()

ToString()

Returns a string representation of the barcode recognition result.

public override string ToString()

Returns

string