Table of Contents

Class TwoDDecodingModeConverter

Namespace
ScanbotSDK.MAUI.Core.Barcode
Assembly
ScanbotSDK.Shared.dll

Allows to select the decoding effort to be spent on decoding 2D barcodes. Higher decoding efforts can decode barcodes that are more damaged or have a lower print quality or are printed on non-ideal surfaces (e.g. curved surfaces). However, higher decoding efforts also require more processing time.

public class TwoDDecodingModeConverter : JsonConverter<TwoDDecodingMode>
Inheritance
TwoDDecodingModeConverter
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type TwoDDecodingMode.

public override TwoDDecodingMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

The reader.

typeToConvert Type

The type to convert.

options JsonSerializerOptions

An object that specifies serialization options to use.

Returns

TwoDDecodingMode

The converted value.

Write(Utf8JsonWriter, TwoDDecodingMode, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, TwoDDecodingMode color, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer to write to.

color TwoDDecodingMode
options JsonSerializerOptions

An object that specifies serialization options to use.