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
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn 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
writerUtf8JsonWriterThe writer to write to.
colorTwoDDecodingModeoptionsJsonSerializerOptionsAn object that specifies serialization options to use.