API Reference
This chapter describes the APIs provided in the ePOS-Print SDK for Android.
ePOS-Print API
The ePOS-Print APIs are APIs for creating and printing print documents. The following classes are available.
❏
Builder class
(p.
39)
❏
Print class
(p.
40)
❏
EposException class
The APIs that you can use and the settings that you can designate vary based on the printer.
For details, refer to
Builder class
This class creates print documents for printer control commands such as character strings to print, graphic
printing, and paper cutting. The following APIs are available.
Constructor
Clearing
command buffers
Text
Paper Feed
Graphic
Barcode
(p.
40)
Printer specifications
API
clearCommandBuffer
addTextAlign
addTextLineSpace
addTextRotate
addText
addTextLang
addTextFont
addTextSmooth
addTextDouble
addTextSize
addTextStyle
addTextPosition
addFeedUnit
addFeedLine
addImage
addLogo
addBarcode
addSymbol
(p.115).
Description
Initialize a Builder class instance.
Clears the command buffers added by APIs.
Adds a tag for the text alignment setting.
Adds a tag for the line feed space setting.
Adds a tag for the text rotation setting.
Adds a tag for printing text.
Adds a tag for the target language setting.
Adds a tag for the text font setting.
Adds a tag for the text smoothing setting.
Adds a tag for specifying the double-sized text
setting.
Adds a tag for the text scale setting.
Adds a tag for the text style setting.
Adds a tag for specifying the print position of
text.
Adds a tag for paper feeding (in dots).
Adds a tag for paper feeding (in lines).
Adds a tag for a raster image to be printed.
Adds a tag for an NV logo to be printed.
Adds a tag for a bar code to be printed.
Adds a tag for a 2D-Code to be printed.
Chapter 4 API Reference
Page
41
42
43
44
45
46
47
48
49
50
51
52
54
55
56
57
59
60
65
4
39