Select your printer model

Parameters are refined by the selected printer.

setReadStringEventDelegate


Registers a callback method which receives characters starting with one of the strings specified by setPrefix and ending with the Enter key as a string.

Syntax

 
- (void) setReadStringEventDelegate:(id<Epos2KbdReadStringDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2KbdReadStringDelegate protocol.

Protocol declaration

 
@protocol Epos2KbdReadStringDelegate <NSObject>
@required
- (void) onKbdReadString:(Epos2Keyboard *)keyboardObj readString:(NSString *)readString prefix:(int)prefix;
@end

Parameter

keyboardObj

The callback source object is stored.

readString

The detected string is stored.

prefix

Key code recognized as the start of a 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.
 

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