Select your printer model

Parameters are refined by the selected printer.

getStatus


Acquires the current status information.

Syntax

 
public LFCPrinterStatusInfo getStatus()

Return value

The current status is returned in the LFCPrinterStatusInfo type.

The following status information is stored in the object as a property.

Stored status information can be acquired using the getter method of each property.

Printer status

Status

Description

connection:

Connection status

LFCPrinter.TRUE

Connected

LFCPrinter.FALSE

Status is unknown.

online:

Online status

LFCPrinter.TRUE

Online

LFCPrinter.FALSE

Offline

LFCPrinter.UNKNOWN

Status is unknown.

coverOpen:

Cover status

LFCPrinter.TRUE

Cover is open.

LFCPrinter.FALSE

Cover is closed.

LFCPrinter.UNKNOWN

Status is unknown.

paper:

Paper status

LFCPrinter.PAPER_OK

Paper remains.

LFCPrinter.PAPER_NEAR_END

Paper is running out.

LFCPrinter.PAPER_EMPTY

Paper has run out.

LFCPrinter.UNKNOWN

Status is unknown.

paperFeed:

Paper feed

LFCPrinter.TRUE

Paper feed in progress

LFCPrinter.FALSE

Stopped

LFCPrinter.UNKNOWN

Status is unknown.

panelSwitch:

Panel switch (Feed button) status

LFCPrinter.SWITCH_ON

Pressed

LFCPrinter.SWITCH_OFF

Not pressed

LFCPrinter.UNKNOWN

Status is unknown.

drawer:

Offline status due to the battery level (Mobile models)

LFCPrinter.DRAWER_HIGH

Offline due to low battery level

LFCPrinter.DRAWER_LOW

Not offline

LFCPrinter.UNKNOWN

Status is unknown.

drawer:

Drawer kick connector pin No.3 status (except for the Mobile models)

LFCPrinter.DRAWER_HIGH

High

LFCPrinter.DRAWER_LOW

Low

LFCPrinter.UNKNOWN

Status is unknown.

errorStatus:

Error status

LFCPrinter.NO_ERR

Normal

LFCPrinter.MECHANICAL_ERR

Mechanical error occurred.

LFCPrinter.AUTOCUTTER_ERR

Auto cutter error occurred.

LFCPrinter.UNRECOVER_ERR

Unrecoverable error occurred.

LFCPrinter.AUTORECOVER_ERR

Automatic recovery error occurred.

LFCPrinter.UNKNOWN

Status is unknown.

autoRecoverError:

Automatic recovery error status

LFCPrinter.HEAD OVERHEAT

Head overheat error

LFCPrinter.MOTOR OVERHEAT

Motor driver IC overheat error

LFCPrinter.BATTERY OVERHEAT

Battery overheat error

LFCPrinter.WRONG PAPER

Paper error

LFCPrinter.COVER_OPEN

Cover is open.

LFCPrinter.UNKNOWN

Status is unknown.

buzzer:

Built-in buzzer sound status

LFCPrinter.TRUE

Sounding (Applicable printer only)

LFCPrinter.FALSE

Stopped (Applicable printer only)

LFCPrinter.UNKNOWN

Status is unknown.

buzzer:

Optional external buzzer sound status

LFCPrinter.TRUE

Always this status

adapter:

AC adapter connection status

LFCPrinter.TRUE

Connected

LFCPrinter.FALSE

Disconnected

LFCPrinter.UNKNOWN

Status is unknown.

batteryLevel:

Remaining battery capacity

LFCPrinter.BATTERY_LEVEL_6

Remaining battery capacity 6

LFCPrinter.BATTERY_LEVEL_5

Remaining battery capacity 5

LFCPrinter.BATTERY_LEVEL_4

Remaining battery capacity 4

LFCPrinter.BATTERY_LEVEL_3

Remaining battery capacity 3

LFCPrinter.BATTERY_LEVEL_2

Remaining battery capacity 2

LFCPrinter.BATTERY_LEVEL_1

Remaining battery capacity 1 (almost run out)

LFCPrinter.BATTERY_LEVEL_0

Remaining battery capacity 0 (run out)

LFCPrinter.UNKNOWN

Status is unknown.

removalWaiting:

Paper removal wait status

LFCPrinter.REMOVAL_WAIT_PAPER

Waiting for removal.

LFCPrinter.REMOVAL_WAIT_NONE

Not waiting for removal.

LFCPrinter.UNKNOWN

Status is unknown.

Supplementary explanation

  • This API is not executed on the main thread. Execute it on the sub-thread.
  • If this API is called while communication is not available, printer states other than "connection" will be set to "LFCPrinter.UNKNOWN".
  • The status object is set to the status at the timing of execution of this API and will not be updated.
 

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