Select your printer model

Parameters are refined by the selected printer.

setReceiveEventDelegate


Registers a callback method for a response document reception event.

Syntax

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

Parameter

delegate

Specifies an object conforming to the Epos2DispReceiveDelegate protocol.

Protocol declaration

 
@protocol Epos2DispReceiveDelegate <NSObject>
@required
- (void) onDispReceive:(Epos2LineDisplay *)displayObj code:(int)code;
@end

Parameter

displayObj

The callback source object is stored.

code

The processing result is stored.

Error status

Description

EPOS2_SUCCESS

Display completed.

EPOS2_CODE_ERR_NOT_FOUND

The device was not found.

EPOS2_CODE_ERR_INVALID_WINDOW

An unregistered window was specified.

EPOS2_CODE_ERR_PORT

An internal communication error with the device occurred.

EPOS2_CODE_ERR_TIMEOUT

A timeout error occurred during communication with the device.

EPOS2_CODE_ERR_TOO_MANY_REQUESTS

The number of display data sent to the display has exceeded the allowable limit.

EPOS2_CODE_ERR_AUTORECOVER

Automatic recovery error occurred.

EPOS2_CODE_ERR_COVER_OPEN

Cover open error occurred.

EPOS2_CODE_ERR_CUTTER

Auto cutter error occurred.

EPOS2_CODE_ERR_MECHANICAL:

Mechanical error occurred.

EPOS2_CODE_ERR_EMPTY

No paper is left in the roll paper end detector.

EPOS2_CODE_ERR_UNRECOVERABLE

Unrecoverable error occurred.

EPOS2_CODE_ERR_BATTERY_LOW

Battery has run out.

EPOS2_CODE_ERR_FAILURE

An unknown error occurred.

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.
  • When a communication error occurs during ePOS-Device XML control, communication disconnection is not notified.
    To notify the disconnection event, implement the setConnectionEventDelegate.
 

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