![]() |
CustomAndroidAPI
1.11
|
Public Member Functions | |
void | close () throws CustomException |
int | getCommPortType () throws CustomException |
boolean | isPrintAvailable () |
boolean | isScannerAvailable () |
boolean | isVeriprintAvailable () |
boolean | isPrinterOnline () throws CustomException |
int | getPrinterId () throws CustomException |
String | getFirmwareVersion () throws CustomException |
String | getAPIVersion () throws CustomException |
byte[] | getPrinterFullStatusBuffer () throws CustomException |
PrinterStatus | getPrinterFullStatus () throws CustomException |
String | getPrinterName () |
String | getPrinterInfo () |
int | getPageWidth () |
int | getResolution () |
long | getReadTimeout () throws CustomException |
void | setReadTimeout (int msecs) throws CustomException |
long | getWriteTimeout () throws CustomException |
void | setWriteTimeout (int msecs) throws CustomException |
void | clearReadBuffer () throws CustomException |
int[] | readData () throws CustomException |
void | writeData (int[] data) throws CustomException |
void | writeData (int[] data, int offset, int nBytes) throws CustomException |
void | writeData (byte[] data) throws CustomException |
void | writeData (byte[] data, int offset, int nBytes) throws CustomException |
void | printText (String text, int pixel_la, int pixel_w, PrinterFont font) throws CustomException |
void | printTextLF (String text, int pixel_la, int pixel_w, PrinterFont font) throws CustomException |
void | printText (String text, PrinterFont font) throws CustomException |
void | printTextLF (String text, PrinterFont font) throws CustomException |
void | printText (String text) throws CustomException |
void | printTextLF (String text) throws CustomException |
void | printImage (Bitmap image, int left_align, int widthOption, int width) throws CustomException |
void | printImage (Bitmap image) throws CustomException |
void | printBarcode (String brcText, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
void | printBarcode (byte[] brcData, int nBytes, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
void | printBarcode2D (String brcText, int brcType, int brcJustification, int brcWidth) throws CustomException |
void | printBarcode2D (byte[] brcData, int nBytes, int brcType, int brcJustification, int brcWidth) throws CustomException |
void | feed (int nFeeds) throws CustomException |
void | cut (int cutType) throws CustomException |
void | eject (int ejectType) throws CustomException |
void | present (int presentMM) throws CustomException |
byte[] | scannerGetFullStatusBuffer () throws CustomException |
ScannerStatus | scannerGetFullStatus () throws CustomException |
void | scannerCleanBuffers () throws CustomException |
void | scannerFeeder (int iFeeder) throws CustomException |
ScannerImage | scannerGetImage (int iImageType, boolean bCropImage) throws CustomException |
Bitmap | scannerGetImageVeriprint () throws CustomException |
byte[] | scannerGetBarcode () throws CustomException |
boolean | scannerPrintBarcodeAndVerify (String brcText, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
boolean | scannerPrintBarcodeAndVerify (byte[] brcData, int nBytes, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
ScannerCardData | scannerGetCardData () throws CustomException |
int | scannerGetImageScannedID () throws CustomException |
void | scannerSetSearchType (int iSearchTypes, boolean bSaveOnlyToRam) throws CustomException |
void | scannerSetEndScanMovement (int iAutoMType) throws CustomException |
void | scannerEject (int iEjectType) throws CustomException |
void | scannerVoidTicket (Bitmap image, int iOffsetMM) throws CustomException |
void | scannerVoidBarcode (Bitmap image) throws CustomException |
int[] | scannerGetThresholds () throws CustomException |
void | scannerSetThresholds (int ithHW, int ithSW) throws CustomException |
boolean | scannerProgramTickets (byte[] bBufferRicketsFile, boolean bSaveOnlyToRam) throws CustomException |
Static Public Attributes | |
static final int | COMMTYPE_BLUETOOTH = 0 |
static final int | COMMTYPE_ETHERNET = 1 |
static final int | COMMTYPE_USB = 2 |
static final int | COMMTYPE_COM = 3 |
static final int | IMAGE_SCALE_NONE = 0 |
static final int | IMAGE_SCALE_TO_FIT = 1 |
static final int | IMAGE_SCALE_TO_WIDTH = 2 |
static final int | IMAGE_ALIGN_TO_LEFT = 0 |
static final int | IMAGE_ALIGN_TO_CENTER = -1 |
static final int | IMAGE_ALIGN_TO_RIGHT = -2 |
static final int | CUT_TOTAL = 0 |
static final int | CUT_PARTIAL = 1 |
static final int | EJ_EJECT = 0 |
static final int | EJ_RETRACT = 1 |
static final int | BARCODE_TYPE_CODABAR = -1 |
static final int | BARCODE_TYPE_UPCA = -2 |
static final int | BARCODE_TYPE_UPCE = -3 |
static final int | BARCODE_TYPE_EAN13 = -4 |
static final int | BARCODE_TYPE_EAN8 = -5 |
static final int | BARCODE_TYPE_CODE39 = -6 |
static final int | BARCODE_TYPE_ITF = -7 |
static final int | BARCODE_TYPE_CODE93 = -8 |
static final int | BARCODE_TYPE_CODE128 = -9 |
static final int | BARCODE_TYPE_CODE32 = -10 |
static final int | BARCODE_TYPE_QRCODE = -101 |
static final int | BARCODE_TYPE_PDF417 = -102 |
static final int | BARCODE_TYPE_DATAMATRIX = -103 |
static final int | BARCODE_TYPE_AZTEC = -104 |
static final int | BARCODE_HRI_NONE = 0 |
static final int | BARCODE_HRI_TOP = 1 |
static final int | BARCODE_HRI_BOTTOM = 2 |
static final int | BARCODE_HRI_TOPBOTTOM = 3 |
static final int | BARCODE_ALIGN_TO_LEFT = 0 |
static final int | BARCODE_ALIGN_TO_CENTER = -1 |
static final int | BARCODE_ALIGN_TO_RIGHT = -2 |
static final int | SCANNER_FEEDER_ENABLE = 1 |
static final int | SCANNER_FEEDER_DISABLE = 0 |
static final int | SCANNER_IMAGE_GRAY_256 = 1 |
static final int | SCANNER_IMAGE_BW = 2 |
static final int | SCANNER_SEARCH_NONE = 0 |
static final int | SCANNER_SEARCH_TYPE_CARD = 1 |
static final int | SCANNER_SEARCH_TYPE_BARCODE = 2 |
static final int | SCANNER_SEARCH_TYPE_CARD_AND_BARCODE = 3 |
static final int | SCANNER_AUTOM_HOLD = 0x30 |
static final int | SCANNER_AUTOM_RETRACT = 0x31 |
static final int | SCANNER_AUTOM_EJECT = 0x32 |
static final int | SCANNER_EJ_RETRACT = 0x31 |
static final int | SCANNER_EJ_EJECT = 0x32 |
Class definition for CUSTOM printers. Defines functionality to print text/image, read/write data to printer, etc
|
inline |
Clears the Read Buffer
CustomException |
|
inline |
Disconnect the link and release attached resources
CustomException |
|
inline |
Sends a Cut command to the printer
cutType | cut type
|
CustomException |
|
inline |
Sends a Eject command to the printer
ejectType | eject type
|
CustomException |
|
inline |
|
inline |
|
inline |
Returns the communication port type
CustomException |
|
inline |
Sends a get Firmware version command to printer and process the response
CustomException |
|
inline |
Returns paper width in pixels / dots
|
inline |
|
inline |
|
inline |
|
inline |
Returns information about the Printer
|
inline |
Returns name/ type of the Printer
|
inline |
|
inline |
Returns Print resolution
|
inline |
|
inline |
Returns if the printer supports print functions
|
inline |
Returns if the printer is ready or not
CustomException |
|
inline |
Returns if the printer supports scanner functions
|
inline |
Returns if the printer supports Veriprint functions
|
inline |
Sends a present command to the printer
presentMM | mm of paper to present |
CustomException |
|
inline |
Sends barcode string to printer to print
brcText | Barcode Text |
brcType | Barcode Type
|
brcHriType | Barcode HRI (Human Readable Information) Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
brcHeight | Barcode Height |
CustomException |
|
inline |
Sends barcode data to printer to print
brcData | Barcode Data |
nBytes | Barcode Data Size |
brcType | Barcode Type
|
brcHriType | Barcode HRI (Human Readable Information) Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
brcHeight | Barcode Height |
CustomException |
|
inline |
Sends barcode 2D string to printer to print
brcText | Barcode Text |
brcType | Barcode Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode external width expressed in dot |
CustomException |
|
inline |
Sends barcode 2D data to printer to print
brcData | Barcode Data |
nBytes | Barcode Data Size |
brcType | Barcode Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode external width expressed in dot |
CustomException |
|
inline |
Sends the Bitmap data to printer to print
image | Bitmap image |
left_align | the value is > 0, the value is the align Left align in pixel. If is <= 0:
|
widthOption | Scaling options
|
width | printed image width in pixel/dots (used only if widthOption=IMAGE_SCALE_TO_WIDTH) |
CustomException |
|
inline |
Sends the Bitmap data to printer to print fit to paper width
image | Bitmap image |
CustomException |
|
inline |
Sends the text data to printer to print
text | String to print |
pixel_la | Left align in pixel |
pixel_w | Print area width in pixel. Pass -1 to use max available print width |
font | Holds various font attributes |
CustomException |
|
inline |
Sends the text data to printer to print. It will print data on full page width with 0 margin
text | String to print |
font | Holds various font attributes |
CustomException |
|
inline |
Sends the text data to printer to print. It will print data on full page width with 0 margin using the last font attributes
text | String to print |
CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end
text | String to print |
pixel_la | Left align in pixel |
pixel_w | Print area width in pixel. Pass -1 to use max available print width |
font | Holds various font attributes |
CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end. It will print data on full page width with 0 margin
text | String to print |
font | Holds various font attributes |
CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end. It will print data on full page width with 0 margin using the last font attributes
text | String to print |
CustomException |
|
inline |
Read Data Buffer. It will return all available data in buffer. Buffer capacity is 1024 bytes.
CustomException |
|
inline |
Clean scanner buffers
CustomException |
|
inline |
Sends a Eject command to the scanner
iEjectType | Eject Type
|
CustomException |
|
inline |
Enable / Disable the scanner feeder
iFeeder | feeder
|
CustomException |
|
inline |
|
inline |
Returns the last data from card read
CustomException |
|
inline |
|
inline |
|
inline |
Returns the last scanned image
iImageType | Image
|
bCropImage | get the Image cropped |
CustomException |
|
inline |
Returns the current progressive Image ID
CustomException |
|
inline |
Returns the last scanned veriprint image
CustomException |
|
inline |
Returns a buffer of 2 elements with the Threshold HW (1st element) and Threshold SW (2nd element)
CustomException |
|
inline |
Sends barcode data to printer to print and check it with veriprint scanner
brcText | Barcode Text |
brcType | Barcode Type
|
brcHriType | Barcode HRI (Human Readable Information) Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
brcHeight | Barcode Height |
CustomException |
|
inline |
Sends barcode data to printer to print and check it with veriprint scanner
brcData | Barcode Data |
nBytes | Barcode Data Size |
brcType | Barcode Type
|
brcHriType | Barcode HRI (Human Readable Information) Type
|
brcJustification | Barcode Justification
|
brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
brcHeight | Barcode Height |
CustomException |
|
inline |
Programs the tickets to the scanner
bBufferRicketsFile | buffer with the ticket raw file |
bSaveOnlyToRam | true if the file is saved ONLY into the RAM |
CustomException |
|
inline |
Sets the automatic Movement type at the end of the scan
iAutoMType | Automatic Mouvement Type
|
CustomException |
|
inline |
Sets the scanner serch types
iSearchTypes | Search types bitmask |
bSaveOnlyToRam | true if the value is saved ONLY into the RAM |
CustomException |
|
inline |
Sets the Threshold HW and Threshold SW
ithHW | Threshold HW (0<= ithHW <=255) |
ithSW | Threshold SW (0<= ithSW <=255) |
CustomException |
|
inline |
Automatically go to the barcode found and prints a image with scanner void printer
image | Image to Print |
CustomException |
|
inline |
Prints a image with scanner void printer
image | Image to Print |
iOffsetMM | mm offset to do before print |
CustomException |
|
inline |
Sets the Read Timeout. It can be between 50-30000 milliseconds.
msecs | Read Timeout (milliseconds) |
CustomException |
|
inline |
Sets the Write Timeout. It can be between 50-30000 milliseconds.
msecs | Write Timeout (milliseconds) |
CustomException |
|
inline |
|
inline |
Write Data Buffer to printer.
data | Data Buffer to Write |
offset | Data Buffer offset |
nBytes | number of Bytes to send to printer |
CustomException |
|
inline |
|
inline |
Write Data Buffer to printer.
data | Data Buffer to Write |
offset | Data Buffer offset |
nBytes | number of Bytes to send to printer |
CustomException |
|
static |
Indicates that the Barcode Justification is Center
|
static |
Indicates that the Barcode Justification is Left
|
static |
Indicates that the Barcode Justification is Right
|
static |
Indicates HRI on BOTTOM of the Barcode
|
static |
Indicates no HRI on the Barcode
|
static |
Indicates HRI on TOP of the Barcode
|
static |
Indicates HRI on TOP and BOTTOM of the Barcode
|
static |
Indicates to print a AZTEC Barcode 2D
|
static |
Indicates to print a CODEBAR Barcode
|
static |
Indicates to print a CODE128 Barcode
|
static |
Indicates to print a CODE32 Barcode
|
static |
Indicates to print a CODE39 Barcode
|
static |
Indicates to print a CODE93 Barcode
|
static |
Indicates to print a DATAMATRIX Barcode 2D
|
static |
Indicates to print a EAN13 Barcode
|
static |
Indicates to print a EAN8 Barcode
|
static |
Indicates to print a ITF Barcode
|
static |
Indicates to print a PDF417 Barcode 2D
|
static |
Indicates to print a QRCODE Barcode 2D
|
static |
Indicates to print a UPCA Barcode
|
static |
Indicates to print a UPCE Barcode
|
static |
Indicates that the communication port is a BLUETOOTH
|
static |
Indicates that the communication port is a COM/TTY
|
static |
Indicates that the communication port is a ETHERNET / WIFI
|
static |
Indicates that the communication port is a USB
|
static |
Indicates to perform a Partial Cut
|
static |
Indicates to perform a Total Cut
|
static |
Indicates to perform a Eject
|
static |
Indicates to perform a Retract
|
static |
Indicates that the Picture Justification is Center
|
static |
Indicates that the Picture Justification is Left
|
static |
Indicates that the Picture Justification is Right
|
static |
Indicates that the Picture will be No scaling. Excess size will be ignored
|
static |
Indicates that the Picture will be Scale to fit the paper width
|
static |
Indicates that the Picture will be Scale the image to width given by width parameter
|
static |
Indicates that the Scanner will automatically eject the paper after the scan
|
static |
Indicates that the Scanner will automatically hold the paper after the scan
|
static |
Indicates that the Scanner will automatically retract the paper after the scan
|
static |
Indicates that the Scanner will perform a eject
|
static |
Indicates that the Scanner will perform a retract
|
static |
Indicates that the Scanner Feeder is Disable
|
static |
Indicates that the Scanner Feeder is Enable
|
static |
Indicates that the Image will be in Black & White (1bit)
|
static |
Indicates that the Image will be in grayscale with 256 gray levels (8 bits)
|
static |
Indicates that the Scanner doesn't search anything
|
static |
Indicates that the Scanner will search the barcode
|
static |
Indicates that the Scanner will search the card
|
static |
Indicates that the Scanner will search the card and barcode