Select your printer model

Parameters are refined by the selected printer.

setReadStringEventListener


Registers a listener method which receives characters starting with one of the strings specified by setPrefix and ending with the Enter key as a string.

Syntax

 
public void setReadStringEventListener (ReadStringListener listener

Parameter

listener

Specifies an object which has a notification target method.

Listener interface

 
public interface ReadStringListener extends EventListener

Listener method

 
void onKbdReadString (Keyboard keyboardObj, String readString, int prefix)

Parameter

keyboardObj

The callback source object is stored.

readString

The detected string is stored.

prefix

Key code recognized as the start of a string is stored.

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