Select your printer model

Parameters are refined by the selected printer.

setDataEventDelegate


Registers a callback method for a card data detection event.

Syntax

 
- (void) setDataEventDelegate:(id<Epos2MSRDataDelegate>)delegate;

Parameter

delegate

Specifies an object conforming to the Epos2MSRDataDelegate protocol.

Protocol declaration

 
@protocol Epos2MSRDataDelegate <NSObject>
@required
- (void) onMSRData:(Epos2MSR *)msrObj
data:(Epos2MSRData *)data;
@end

Parameter

msrObj

The callback source object is stored.

data

Acquires the read card data.

The result is stored in the Epos2MSRData structure.

Property

Description

(NSString *)track1

Entire data of track 1

(NSString *)track2

Entire data of track 2

(NSString *)track4

Entire data of track 4 (JIS2 track)

(NSString *)accountNumber

Account number

(NSString *)expirationData

Expiration date ("YYMM" format)

(NSString *)surname

Surname

(NSString *)firstName

First Name

(NSString *)middleInitial

Middle name/initial

(NSString *)title

Title

(NSString *)serviceCode

Service code

(NSString *)track1_dd

Arbitrary data of track 1

(NSString *)track2_dd

Arbitrary data of track 2

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