to top
Datalogic APIs
public class

CustomOCR

extends Object
java.lang.Object
   ↳ com.datalogic.decode.CustomOCR

Class Overview

Class representing a custom OCR configuration installed in the device.

Summary

Public Methods
String getDescription()
Returns the description of this custom OCR configuration.
String getName()
Returns the name that uniquely identifies this custom OCR configuration.
boolean isEnabled()
Checks if this custom OCR configuration is enabled.
int setEnabled(boolean enabled)
Enables / disables this custom OCR configuration.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getDescription ()

Added in revision 34

Returns the description of this custom OCR configuration.

Returns
  • The configuration description.

public String getName ()

Added in revision 34

Returns the name that uniquely identifies this custom OCR configuration.

Returns
  • The configuration name.

public boolean isEnabled ()

Added in revision 34

Checks if this custom OCR configuration is enabled.

Returns
  • True if the configuration is enabled, false otherwise.

public int setEnabled (boolean enabled)

Added in revision 34

Enables / disables this custom OCR configuration.

Parameters
enabled True to enable the configuration, false to disable it.
Returns
  • int SUCCESS in case of success, otherwise a possible error code, matching one of the DecodeException error constants.
Throws
DecodeException in case the configuration could not be enabled / disabled, when exceptions are enabled through the ErrorManager singleton.