Select your printer model

Parameters are refined by the selected printer.

waitInsertion


Causes the printer to wait for paper insertion.

After running this API, set the paper appropriate for the print method specified by the selectPaperType.

The processing result of the devices using this API is notified to the listener method set by the setReceiveEventListener API of the HybridPrinter class.

Syntax

 
public void waitInsertion (int timeout) throws Epos2Execption

Parameter

timeout

Specifies the timeout period before completion of paper insertion in milliseconds.

Value

Description

Integer from 5000 to 600000

Timeout period (in milliseconds)

HybridPrinter.PARAM_DEFAULT

Specifies the default value (15000).

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

HybridPrinter.ERR_PARAM

An invalid parameter was specified.

HybridPrinter.ERR_ILLEGAL

This API was called while no communication had been started.

HybridPrinter.ERR_MEMORY

Necessary memory could not be allocated.

HybridPrinter.ERR_FAILURE

An unknown error occurred.

HybridPrinter.ERR_PROCESSING

Could not run the process.

Supplementary explanation

This API is not executed on the main thread. Execute it on the sub-thread.

 

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