Select your printer model

Parameters are refined by the selected printer.

initWithLang


Initializes the Epos2HybridPrinter class.

Syntax

 
- (id) initWithLang:(int)lang;

Parameter

lang

Specifies the language of the printer.

Value

Description

EPOS2_MODEL_ANK

English (ANK specification)

EPOS2_MODEL_JAPANESE

Japanese

EPOS2_MODEL_CHINESE

Simplified Chinese

EPOS2_MODEL_TAIWAN

Traditional Chinese

EPOS2_MODEL_KOREAN

Korean

EPOS2_MODEL_THAI

Thai

EPOS2_MODEL_SOUTHASIA

South Asian specification

Return value

If the process succeeds, an initialized Epos2HybridPrinter class instance will be returned.

If the process fails, nil will be returned. The process may fail due to the following reasons:

Error status

Description

EPOS2_ERR_PARAM

An invalid parameter was specified.

EPOS2_ERR_MEMORY

Necessary memory could not be allocated.

EPOS2_ERR_UNSUPPORTED

A language not supported was specified.

Supplementary explanation

When iterating a process, be sure to generate and destroy instances outside the iterated process and not iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid operation.

 

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 iOS

Jump to the top