Select your printer model

Parameters are refined by the selected printer.

Epos2HybridPrinter class


Controls the hybrid model printers.

API

Description

Initialization

initWithLang

Initializes the HybridPrinter class.

Communication path

connect

Connects to the printer.

disconnect

Disconnects from the printer.

Status monitor

startMonitor

Enables status event notification.

stopMonitor

Disables status event notification.

Status acquisition

getStatus

Acquires status of the connected printer.

Transmission

sendData

Transfers a print command.

Transaction

beginTransaction

Starts a transaction.

endTransaction

Ends a transaction.

Buffer clear

clearCommandBuffer

Clears the command buffer.

Print method

selectPaperType

Specifies a print method.

Paper feed

waitInsertion

Inserts paper.

cancelInsertion

Cancels waiting for paper insertion.

Paper eject

ejectPaper

Ejects paper.

MICR

readMicrData

Reads by MICR.

cleanMicrReader

Cleans the MICR mechanism.

Forced transmission

forceRecover

Forced transmission function

forcePulse

forceCommand

forceReset

Print method acquisition

paperType

Acquires the print method setting information.

Monitor interval

interval

Printer status update interval

On standby

waitTime

Time from insertion of a paper to start of operation

40cpl mode

mode40Cpl

40cpl mode

Reception of result

setStatusChangeEventDelegate

Registers the callback method for an event.

setReceiveEventDelegate

List of supported control operations for HybridPrinter class

APIs available for the Epos2HybridPrinter class depend on the print method.

The APIs and corresponding print methods are listed below.

API

Control operation

Receipt

Slip sheet

Endorsement

Validation

MICR

initWithLang

connect

disconnect

startMonitor

stopMonitor

getStatus

sendData

-

beginTransaction

endTransaction

clearCommandBuffer

-

selectPaperType

-

waitInsertion

-

-

cancelInsertion

-

ejectPaper

-

readMicrData

-

-

-

-

cleanMicrReader

-

-

-

-

setStatusChangeEventDelegate

setReceiveEventDelegate

Creating print document by the Epos2HybridPrinter class

The Epos2HybridPrinter class creates a print document using the same API as the Epos2Printer class.

The APIs and corresponding print methods are listed below.

API

Print method

Receipt

Slip sheet

Endorsement

Endorsement (40cpl)

Validation

Text

addTextAlign

-

addLineSpace

-

addTextRotate

addText

addTextLang

-

-

addTextFont

-

addTextSmooth

-

-

-

-

addTextSize

-

addTextStyle

*

*

-

*

addHPosition

Paper feed

addFeedUnit

addFeedLine

Graphics

addImage

-

-

-

-

addLogo

-

-

-

-

Barcode

addBarcode

-

-

-

-

addSymbol

-

-

-

-

Page mode

addPageBegin

-

-

addPageEnd

-

-

addPageArea

-

-

addPageDirection

-

-

addPagePosition

-

-

addPageLine

-

-

-

addPageRectangle

-

-

-

Cut

addCut

-

-

-

-

Drawer

addPulse

Command

addCommand

* The reverse parameter is not supported.

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for iOS

Jump to the top