Select your printer model

Parameters are refined by the selected printer.

setReceiveEventDelegate


Registers the callback method for response document receive events.

Syntax

 
- (void) setReceiveEventDelegate: 
(id<Epos2GermanyFiscalElementReceiveDelegate>) delegate;

Parameter

delegate

Specifies an object conforming to the Epos2GermanyFiscalElementReceiveDelegate protocol.

Protocol declaration

 
(void) 
onGfeReceive:(Epos2GermanyFiscalElement *)germanyFiscalObj code:(int)code
data:(NSString *)data

Parameter

germanyFiscalObj

The callback source object is stored.

code

The processing result is stored.

Error status

Description

EPOS2_CODE_SUCCESS

Processed successfully.

EPOS2_CODE_ERR_TIMEOUT

Failed to communicate with the devices within the specified time.

EPOS2_CODE_ERR_PORT

Error was detected with the communication port.

EPOS2_CODE_ERR_GET_JSON_SIZE

Failed to acquire the JSON string.

EPOS2_CODE_ERR_AUTORECOVER

Automatic recovery error occurred.

EPOS2_CODE_ERR_UNRECOVERABLE

Unrecoverable error occurred.

EPOS2_CODE_ERR_CUTTER

Auto cutter error occurred.

EPOS2_CODE_ERR_MECHANICAL

Mechanical error occurred.

EPOS2_CODE_ERR_NOT_FOUND

The device was not found.

EPOS2_CODE_ERR_DEVICE_BUSY

The specified device is in process and the process cannot be executed.

data

The processing result is stored in the JSON string.

Supplementary explanation

  • When this API is run multiple times, the callback method specified later takes effect.
  • If nil is specified in delegate when calling this API, the registered callback 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 iOS

Jump to the top