11.07.2015 Views

Contactless Communication API - Oracle Software Delivery Cloud

Contactless Communication API - Oracle Software Delivery Cloud

Contactless Communication API - Oracle Software Delivery Cloud

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TransactionListenerTransactionListener — interface in package javax.microedition.contactlesspublic interface TransactionListenerField summarystatic byteUNKNOWN_SLOTMethod summaryvoidexternalReaderDetected(byte slot)DescriptionFieldsUNKNOWN_SLOTMethodsThis interface provides a notification to the application about secure element activity in card emulation mode. When anactivity has happened between the secure element on the device and an external reader device through the RFID hardware,this notification is sent to the application registered to receive it. Applications must implement this interface to receivethe notifications. Applications are not participating to these transactions.The application is responsible for any possible synchronization required in the listener methods. The listener methodsmust return quickly and should not perform any extensive processing. The method calls are intended as triggers for theapplication. The application should do all necessary extensive processing in a separate thread and only use these methodsto initiate the processing.public static final byte UNKNOWN_SLOTA constant to use when the slot number is not known.Value: -1externalReaderDetected(byte)Parameterspublic void externalReaderDetected(byte slot)Called by the platform, when a card emulation event has happened on the RFID hardware. This notification informs theapplication, that there might be changes in the data on the secure element.If the application displays for example the number of metro tickets left in the device, after receiving this notification theapplication can update the number of available tickets shown on the screen. How the number of tickets is acquired fromthe secure element is out of scope for this specification.slot - the slot needed to open the APDUConnection defined in JSR 177 to the internal secure element, may beUNKNOWN_SLOT constant defined in this interface, if the slot can not be identified25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!