Select your printer model

Parameters are refined by the selected printer.

setReceiveEventDelegate


Registers a callback method for a notification of reception data from the peripheral device event.

Syntax

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

Parameter

delegate

Specifies an object conforming to the Epos2OtherReceiveDelegate protocol.

Protocol declaration

 
@protocol Epos2OtherReceiveDelegate <NSObject>
@required
- (void) onOtherReceive:(Epos2OtherPeripheral *)otherObj eventName:(NSString *)eventName data:(NSString *)data;
@end

Parameter

otherObj

The callback source object is stored.

eventName

The event name is stored.

data

Reception data 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