Select your printer model

Parameters are refined by the selected printer.

setDataEventListener


Registers a listener method for a card data detection event.

Syntax

 
public void setDataEventListener(DataListener listener)

Parameter

listener

Specifies an object which has a notification target method.

Listener interface

 
public interface DataListener extends EventListener

Listener method

 
void onData(Msr msrObj, Data data)

Parameter

msrObj

The callback source object is stored.

data

Acquires the read card data.

The result is stored in the Data structure.

Property

Description

String track1

Entire data of track 1

String track2

Entire data of track 2

String track4

Entire data of track 4 (JIS2 track)

String accountNumber

Account number

String expirationData

Expiration date ("YYMM" format)

String surname

Surname

String firstName

First Name

String middleInitial

Middle name/initial

String title

Title

String serviceCode

Service code

String track1_dd

Arbitrary data of track 1

String track2_dd

Arbitrary data of track 2

Supplementary explanation

  • When this API is run multiple times, the listener method specified later takes effect.
  • If null is specified in listener when calling this API, the registered listener 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 Android

Jump to the top