Select your printer model

Parameters are refined by the selected printer.

setPrefix


Sets the list of prefixes for string entry.

Sets a key code which is recognized as the start of a string to accept keyboard input as a sequence of strings.

Syntax

 
public void setPrefix(int[] prefixes) throws Epos2Exception

Parameter

prefixes

Specifies the key code arrangement.

Refer to Key code list for the key codes.

Specifying null disables setPrefix.

Exception

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

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_CONNECT

Communication failed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

Entering NULL or "" clears the current setting.

 

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