6
Programming Guide....................................................................25
■ How to Incorporate the ePOS-Print SDK for Android....................................................... 25
■ ePOS-Print SDK.................................................................................................................... 27
Print Mode.............................................................................................................................................27
Programming Flow ...............................................................................................................................27
Printer search ........................................................................................................................................28
Print Document Creation ....................................................................................................................29
Transmission of Print Document ..........................................................................................................32
Printing After Checking the Printer Status..........................................................................................33
■ Exception handling............................................................................................................ 34
Steps for Handling ................................................................................................................................34
Error Status List.......................................................................................................................................36
Printer Status List....................................................................................................................................37
API Reference ..............................................................................39
■ ePOS-Print API..................................................................................................................... 39
Builder class (Constructor)...................................................................................................................41
clearCommandBuffer ..........................................................................................................................42
addTextAlign .........................................................................................................................................43
addTextLineSpace ...............................................................................................................................44
addTextRotate......................................................................................................................................45
addText..................................................................................................................................................46
addTextLang .........................................................................................................................................47
addTextFont ..........................................................................................................................................48
addTextSmooth ....................................................................................................................................49
addTextDouble.....................................................................................................................................50
addTextSize ...........................................................................................................................................51
addTextStyle..........................................................................................................................................52
addTextPosition.....................................................................................................................................54
addFeedUnit .........................................................................................................................................55
addFeedLine.........................................................................................................................................56
addImage .............................................................................................................................................57
addLogo................................................................................................................................................59
addBarcode .........................................................................................................................................60
addSymbol............................................................................................................................................65
addPageBegin .....................................................................................................................................70
addPageEnd ........................................................................................................................................71
addPageArea ......................................................................................................................................72
addPageDirection ...............................................................................................................................74
addPagePosition ..................................................................................................................................76
addPageLine ........................................................................................................................................78
addPageRectangle.............................................................................................................................80
addCut ..................................................................................................................................................82
addPulse................................................................................................................................................83
addSound .............................................................................................................................................84