Select your printer model

Parameters are refined by the selected printer.

setReceiveEventListener


Registers a listener method for a reception event from the device.

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 onSimpleSerialReceive (SimpleSerial serialObj, byte[] data)

Parameter

serialObj

The callback source object is stored.

data

Receives reception data.

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