Select your printer model

Parameters are refined by the selected printer.

setStatusChangeEventListener


Registers a listener method for a status change event.

Syntax

 
public void setStatusChangeEventListener(LFCStatusChangeListener lfcStatusChangeListener)

Parameter

lfcStatusChangeListener

Specifies an object which has a notification target method.

Listener interface

 
public interface LFCStatusChangeListener extends EventListener

Listener method

 
void onLFCStatusChange(LFCPrinter lfcPrinterObj, int eventType)

Parameter

lfcPrinterObj

The callback source object is stored.

eventType

The type of the event that occurred is stored.

Event type

Description

LFCPrinter.EVENT_ONLINE

Online

LFCPrinter.EVENT_OFFLINE

Offline

LFCPrinter.EVENT_POWER_OFF

Power off

LFCPrinter.EVENT_COVER_CLOSE

Cover close

LFCPrinter.EVENT_COVER_OPEN

Cover open

LFCPrinter.EVENT_PAPER_OK

Paper remains.

LFCPrinter.EVENT_PAPER_NEAR_END

Paper has almost run out.

LFCPrinter.EVENT_PAPER_EMPTY

Paper has run out.

LFCPrinter.EVENT_DRAWER_HIGH

Drawer kick connector pin No.3 status = "H"

LFCPrinter.EVENT_DRAWER_LOW

Drawer kick connector pin No.3 status = "L"

LFCPrinter.EVENT_BATTERY_ENOUGH

Battery is enough.

LFCPrinter.EVENT_BATTERY_EMPTY

Battery has run out.

LFCPrinter.EVENT_REMOVAL_WAIT_PAPER

Waiting for paper removal.

LFCPrinter.EVENT_REMOVAL_WAIT_NONE

Not waiting for paper removal.

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.
 

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