net.rim.device.api.io.nfc.emulation
Interface VirtualISO14443Part4TargetCallback


public interface VirtualISO14443Part4TargetCallback

Callback interface for ISO 14443-4 commands sent by an external NFC reader.

Since:
BlackBerry API 7.0.0

Field Summary
static int DEACTIVATED
          The virtual NFC ISO 14443-4 target was deactivated by an external reader.
static int EMULATION_STOPPED
          The emulation was stopped, either explicitly by the application, or because the application was switched into the background.
static int SELECTED
          The virtual NFC ISO 14443-4 target was selected by an external reader.
 
Method Summary
 void onVirtualTargetEvent(int targetEvent)
          Invoked by the platform when an NFC ISO 14443-4 target emulation event occurs.
 byte[] processCommand(byte[] command)
          Invoked when an external NFC reader sends an ISO 14443-4 command.
 



Field Detail

SELECTED

static final int SELECTED
The virtual NFC ISO 14443-4 target was selected by an external reader.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

DEACTIVATED

static final int DEACTIVATED
The virtual NFC ISO 14443-4 target was deactivated by an external reader.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

EMULATION_STOPPED

static final int EMULATION_STOPPED
The emulation was stopped, either explicitly by the application, or because the application was switched into the background.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0


Method Detail

onVirtualTargetEvent

void onVirtualTargetEvent(int targetEvent)
Invoked by the platform when an NFC ISO 14443-4 target emulation event occurs.

Parameters:
targetEvent - The NFC target emulation event (SELECTED or DEACTIVATED).
Since:
BlackBerry API 7.0.0

processCommand

byte[] processCommand(byte[] command)
Invoked when an external NFC reader sends an ISO 14443-4 command.

Parameters:
command - The ISO 14443-4 command sent by the external reader.
Returns:
A byte array containing the response to be sent to the external reader.
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal