Select your printer model

Parameters are refined by the selected printer.

setConnectionEventDelegate


Registers a callback method which receives a notification that the reconnection process has been started.

Syntax

 
- (void) setConnectionEventDelegate:(id<Epos2ConnectionDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2ConnectionDelegate protocol.

Protocol declaration

 
@protocol Epos2ConnectionDelegate <NSObject>
@required
- (void) onConnection:(id)deviceObj eventType:(int)eventType;
@end

Parameter

deviceObj

The callback source object is stored.

eventType

The type of the event that occurred is stored.

Event type

Description

EPOS2_EVENT_RECONNECTING

Reconnection start event

EPOS2_EVENT_RECONNECT

Reconnection completion event

EPOS2_EVENT_DISCONNECT

Disconnection event

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.
  • It takes about 30 seconds for the disconnection event to occur after the disconnection.
  • Do not make any call operation when EPOS2_EVENT_RECONNECTING has occurred.
    Wait until EPOS2_EVENT_RECONNECT or EPOS2_EVENT_DISCONNECT occurs.
  • EPOS2_EVENT_DISCONNECT occurs in the following cases:
    When disconnect is running
    When connection fails after occurrence of EPOS2_EVENT_RECONNECTING
  • When EPOS2_EVENT_DISCONNECT occurs, it is not necessary to call disconnect.
    When disconnect is called, ERR_ILLEGAL will be returned in the return value.
 

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