Select your printer model

Parameters are refined by the selected printer.

setKeyPressEventDelegate


Registers the callback method for key press events.

Syntax

 
- (void)
setKeyPressEventDelegate:(id<Epos2POSKbdKeyPressDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2POSKbdKeyPressDelegate protocol.

Protocol declaration

 
@protocol Epos2POSKbdKeyPressDelegate <NSObject>
@required
- (void) onKbdKeyPress:(Epos2POSKeyboard *)keyboardObj
posKeyCode:(int)posKeyCode;
@end

Parameter

keyboardObj

The callback source object is stored.

posKeyCode

The code of the pressed key 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.
 

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