|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface CardEmulationEventHandler
Interface definition used for receiving notifications from the
CardEmulation. These callbacks methods are called if the
CardEmulationEventHandler has been registered with the Card Emulation Registry
using the CardEmulation.start(org.opennfc.cardemulation.CardEmulationEventHandler) method.
| Field Summary | |
|---|---|
static int |
DEACTIVATE
The card emulation is de-selected by a remote reader or the field is cut off. |
static int |
SELECTION
The card emulation is selected by a remote reader. |
| Method Summary | |
|---|---|
void |
onCommandReceived(byte[] command)
Method called when a command is received from a reader. |
void |
onEventReceived(int event)
Method called when an event is received from a reader. |
| Field Detail |
|---|
static final int SELECTION
static final int DEACTIVATE
| Method Detail |
|---|
void onEventReceived(int event)
event - the event value: SELECTION or DEACTIVATE.void onCommandReceived(byte[] command)
CardEmulation.sendResponse()
to send an answer to the reader.
command - the command received from the reader.
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||