Click or drag to resize

BarcodeManagerIsSymbologySupported Method

Return true if the device's decoder is able to read a particular barcode symbology.

Namespace:  Com.Datalogic.Decode
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
public virtual bool IsSymbologySupported (Com.Datalogic.Decode.Symbology barcodeType);

Parameters

barcodeType
Type: Com.Datalogic.Decode.Symbology
Barcode type is one of the Symbology .

Return Value

Type: System.Boolean
boolean False is returned if the decoder is not able to read the particular barcode type, and true is returned otherwise.

Exceptions
Exception Condition
DecodeException in case of error, when exceptions are enabled through the ErrorManager singleton.
ConfigException in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks
Return true if the device's decoder is able to read a particular barcode symbology.

Example:
public boolean isQRSupported(BarcodeManager decoder) {
  return decoder.isSymbologySupported(Symbology.QRCODE);
}

[Android Documentation]

See Also

Reference