Builder Class (Constructor) - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

Builder class (Constructor)

Constructor for the Builder class. Initializes a Builder class instance.
Syntax
public Builder(String printerModel, int lang)
throws EposException
Parameter
 printerModel : Specifies the model name for the target printer.
"TM-T88V"
"TM-T70"
"TM-U220"
"TM-P60"
 lang :
Specifies the language specifications for the printer.
Builder.MODEL_ANK
Builder.MODEL_JAPANESE
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_UNSUPPORTED
ERR_FAILURE
Example
If you are initializing the command buffer for the TM-T88V ANK model:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
Set value
TM-T88V
TM-T70
TM-U220
TM-P60
Set value
ANK model
Japanese model
Invalid parameter was passed.
Could not allocate memory.
An unsupported model name or unsupported language
specifications were specified.
An unspecified error occurred.
Chapter 4 API Reference
Description
Description
Description
4
41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents