Select your printer model

Parameters are refined by the selected printer.

setReceiveEventListener


Registers a listener method for a display completion event.

Syntax

 
public void setReceiveEventListener (ReceiveListener listener)

Parameter

listener

Specifies an object which has a notification target method.

Listener interface

 
public interface ReceiveListener extends EventListener

Listener method

 
void onDispReceive (LineDisplay displayObj, int code)

Parameter

displayObj

The callback source object is stored.

code

The processing result is stored.

Error status

Description

CODE_SUCCESS

Display completed.

CODE_ERR_NOT_FOUND

The device was not found.

CODE_ERR_INVALID_WINDOW

An unregistered window was specified.

CODE_ERR_PORT

An internal communication error with the device occurred.

CODE_ERR_TIMEOUT

A timeout error occurred during communication with the device.

CODE_ERR_TOO_MANY_REQUESTS

The number of display data sent to the display has exceeded the allowable limit.

CODE_ERR_AUTORECOVER

Automatic recovery error occurred.

CODE_ERR_COVER_OPEN

Cover open error occurred.

CODE_ERR_CUTTER

Auto cutter error occurred.

CODE_ERR_MECHANICAL

Mechanical error occurred.

CODE_ERR_EMPTY

No paper is left in the roll paper end detector.

CODE_ERR_UNRECOVERABLE

Unrecoverable error occurred.

CODE_ERR_BATTERY_LOW

Battery has run out.

CODE_ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • When this API is run multiple times, the listener method specified later takes effect.
  • If null is specified in listener when calling this API, the registered listener method is canceled.
  • When a communication error occurs during ePOS-Device XML control, communication disconnection is not notified.
    To notify the disconnection event, implement the setConnectionEventListener.
 

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 Android

Jump to the top