Table of Contents

Class BarcodeDetector

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The BarcodeDetector interface of the 'Barcode Detection API' allows detection of linear and two dimensional barcodes in images.
[Value("BarcodeDetector")]
public class BarcodeDetector
Inheritance
BarcodeDetector
Inherited Members

Remarks

Constructors

BarcodeDetector()

public BarcodeDetector()

BarcodeDetector(BarcodeDetectorOptions)

NOTE
Experimental
The BarcodeDetector() constructor creates
a new BarcodeDetector object which detects linear and two-dimensional
barcodes in images.
public BarcodeDetector(BarcodeDetectorOptions barcodeDetectorOptions = null)

Parameters

barcodeDetectorOptions BarcodeDetectorOptions

Remarks

Methods

Detect(Union93)

NOTE
Experimental
The detect() method of the
BarcodeDetector interface returns a {{jsxref('Promise')}} which fulfills
with an 'Array' of detected barcodes within an image.
[Value("detect")]
public Task<List<DetectedBarcode>> Detect(Union93 image)

Parameters

image Union93

Returns

Task<List<DetectedBarcode>>

Returns a 'Promise' which fulfills with an array of
DetectedBarcode objects with the following properties:

Remarks

GetSupportedFormats()

NOTE
Experimental
The getSupportedFormats() static method
of the BarcodeDetector interface returns a {{jsxref('Promise')}} which
fulfills with an 'Array' of supported barcode format types.
[Value("getSupportedFormats")]
public static Task<List<BarcodeFormat>> GetSupportedFormats()

Returns

Task<List<BarcodeFormat>>

A 'Promise' which fulfills with an 'Array' of
supported barcode format types.

Remarks