Select your printer model

Parameters are refined by the selected printer.

setReceiveEventDelegate


Registers a callback method for a message reception event of the communication box.

Syntax

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

Parameter

delegate

Specifies an object conforming to the Epos2CommBoxReceiveDelegate protocol.

Protocol declaration

 
@protocol Epos2CommBoxReceiveDelegate <NSObject>
@required
- (void) onCommBoxReceive:(Epos2CommBox *)commBoxObj senderId:(NSString *)senderId receiverId:(NSString *)receiverId message:(NSString *)message;
@end;

Parameter

commBoxObj

The callback source object is stored.

senderId

The member ID of the transmitter is stored.

If no member ID was specified when running the connect method, "" (blank character) is set.

receiverId

The member ID of the receiver is stored.

If data was sent to all the members of the communication box, "" (blank character) is set.

message

The received message is stored.

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