Select your printer model

Parameters are refined by the selected printer.

setScanEventDelegate


Registers a callback method for a barcode data entry event.

Syntax

 
- (void) setScanEventDelegate: (id<Epos2ScanDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2ScanDelegate protocol.

Protocol declaration

 
@protocol Epos2ScanDelegate <NSObject>
@required
- (void) onScanData:(Epos2BarcodeScanner *)scannerObj scanData:(NSString *)scanData;
@end

Parameter

scannerObj

The callback source object is stored.

scanData

The detected string 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.
  • The notification timing of the barcode data entry event differs depending on how it is connected. Refer to the description of the target parameter of the connect API for details.
 

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