BarcodeManagerEnableSymbology Method |
Enables or disables a barcode symbology type.
Namespace:
Com.Datalogic.Decode
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0
(1.0.0.0)
Syntax
public virtual int EnableSymbology (Com.Datalogic.Decode.Symbology barcodeType, bool enable);
Public Virtual Integer EnableSymbology (Com.Datalogic.Decode.Symbology barcodeType, Boolean enable);
Parameters
- barcodeType
- Type: Com.Datalogic.Decode.Symbology
Indicates the type of data
whose enable setting is to be altered. (one of the
barcode type in the Symbology class). - enable
- Type: System.Boolean
boolean specifies
whether or not the data type will be enabled. If
false, the data type is disabled, otherwise it is
enabled.
Return Value
Type: System.Int32
int DecodeException.SUCCESS in case of success, otherwise a possible error code,
matching one of the DecodeException or ConfigException error constants.
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
Enables or disables a barcode symbology type.
Note:
when the decoding configuration changes due a call to
this method, it is not saved in a persistent way across
system reboot. See
persistance note.
Example:
public int enableCode39(BarcodeManager decoder)
{
decoder.enableSymbology(Symbology.CODE39,
true);
}
[Android Documentation]
See Also