Select your printer model

Parameters are refined by the selected printer.

setReceiveEventListener


Registers the listener method for response document receive events.

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 onGfeReceive (GermanyFiscalElement germanyFiscalObj, int code, String data)

Parameter

gfeObj

The callback source object is stored.

code

The processing result is stored.

Error status

Description

CODE_SUCCESS

Processed successfully.

CODE_ERR_TIMEOUT

Failed to communicate with the devices within the specified time.

CODE_ERR_PORT

An internal communication error with the device occurred.

CODE_ERR_GET_JSON_SIZE

Failed to acquire the JSON string.

CODE_ERR_AUTORECOVER

Automatic recovery error occurred.

CODE_ERR_UNRECOVERABLE

Unrecoverable error occurred.

CODE_ERR_CUTTER

Auto cutter error occurred.

CODE_ERR_MECHANICAL

Mechanical error occurred.

CODE_ERR_NOT_FOUND

The device was not found.

CODE_ERR_DEVICE_BUSY

The specified device is in process and the process cannot be executed.

data

Processing results are stored in the JSON string.

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