public interface HCIListener
extends javacard.framework.Shareable
An Object shall not implement this interface but only implement one of the sub-interfaces.
An Applet instance implementing a *Listener interface shall only
receive events defined in the same *Listener interface or in the
HCIListener interface.
If a Class is implementing more then one HCIListener sub-interfaces
the Applet should check the type of the HCIMesage by using
instanceof in order to identify the source of the notification.
Messages received through the inherited method HCIListener.onCallback
shall be of the message type defined in the same package as the *Listener interface
CardEmulationListener,
ConnectivityListener,
ReaderListener| Modifier and Type | Field and Description |
|---|---|
static byte |
EVENT_HCI_RECEPTION_FAILED
Deprecated.
|
static byte |
EVENT_HCI_TRANSMISSION_FAILED
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCallback(byte event,
HCIMessage message)
This method is called by the HCI framework to inform the Listener
Object about a specific event and pass the corresponding
HCIMessage to
the Listener Object. |
static final byte EVENT_HCI_TRANSMISSION_FAILED
static final byte EVENT_HCI_RECEPTION_FAILED
void onCallback(byte event,
HCIMessage message)
HCIMessage to
the Listener Object.
In the case of an EVENT_HCI_TRANSMISSION_FAILED the message
which could not be transmitted shall be made available in the HCIMessage object.
If an Applet has requested the framework to send more than one message during a single
onCallback method execution and a transmission to the CLF failed the framework
shall not attempt to send any of the remaining messages.
The EVENT_HCI_RECEPTION_FAILED shall not be raised in the case of a
failure to receive a command from an external reader in CardEmulation Mode due to a problem
on the data link layerevent - that triggers the invocation of the methodmessage - the HCIMessage