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 (StatusChangeListener statusChangeListener)

Parameter

statusChangeListener

Specifies an object which has a notification target method.

Listener interface

 
public interface StatusChangeListener extends EventListener

Listener method

 
void onHybdStatusChange(HybridPrinter hybridPrinterObj, int eventType)

Parameter

hybridPrinterObj

The callback source object is stored.

eventType

The type of the event that occurred is stored.

Event type

Description

HybridPrinter.EVENT_ONLINE

Online

HybridPrinter.EVENT_OFFLINE

Offline

HybridPrinter.EVENT_POWER_OFF

Power off

HybridPrinter.EVENT_COVER_CLOSE

Cover close

HybridPrinter.EVENT_COVER_OPEN

Cover open

HybridPrinter.EVENT_PAPER_OK

Paper remains.

HybridPrinter.EVENT_PAPER_NEAR_END

Paper has almost run out.

HybridPrinter.EVENT_PAPER_EMPTY

Paper has run out.

HybridPrinter.EVENT_DRAWER_HIGH

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

HybridPrinter.EVENT_DRAWER_LOW

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

HybridPrinter.EVENT_INSERTION_WAIT_SLIP

Waiting for slip sheet insertion

HybridPrinter.EVENT_INSERTION_WAIT_VALIDATION

Waiting for validation sheet insertion

HybridPrinter.EVENT_INSERTION_WAIT_MICR

Waiting for slip sheet insertion

HybridPrinter.EVENT_INSERTION_WAIT_NONE

Not waiting for paper insertion

HybridPrinter.EVENT_REMOVAL_WAIT_PAPER

Waiting for paper removal

HybridPrinter.EVENT_REMOVAL_WAIT_NONE

Not waiting for paper removal

HybridPrinter.EVENT_SLIP_PAPER_OK

Paper remains in the paper conveyance route for the slip mechanism

HybridPrinter.EVENT_SLIP_PAPER_EMPTY

No paper in the paper conveyance route for the slip mechanism

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