package com.codename1.nfc

Near Field Communication (NFC) API: read and write NDEF messages, exchange APDUs with contactless smart cards, and host-emulate as a card.

Nfc.getInstance() returns the platform implementation; supporting classes cover NDEF (NdefMessage, NdefRecord), tag discovery (Tag, TagType, TagTechnology, NfcListener, NfcReadOptions), specific tag technologies (IsoDep, MifareClassic, MifareUltralight, NfcA, NfcB, NfcF, NfcV), APDU exchange (ApduResponse) and host card emulation (HostCardEmulationService). Failures surface through NfcError and NfcException.

Types

class ApduResponseHelpers for working with the ISO 7816 status word (SW1/SW2) trailer at the end of every APDU response.
class HostCardEmulationServiceApplication-supplied handler for Host Card Emulation (HCE) – the mode where the device acts as a contactless smart card and answers APDUs from a nearby reader/terminal.
class IsoDepISO 14443-4 / ISO 7816-4 technology view: send APDU command-response pairs to a contactless smart card (EMV payment, ePassport, government ID, transit).
class MifareClassicNXP MIFARE Classic 1K/4K technology view.
class MifareUltralightNXP MIFARE Ultralight / Ultralight C / NTAG21x technology view.
class NdefMessageAn NDEF message – the payload of an NDEF-formatted tag.
class NdefRecordA single NDEF (NFC Data Exchange Format) record.
class NfcEntry point for the Codename One NFC API – read and write NDEF messages, exchange APDUs with smart cards, and host-emulate as a contactless card.
class NfcANFC-A (ISO 14443-3A) raw transceive view.
class NfcBNFC-B (ISO 14443-3B) raw transceive view.
enum NfcErrorTyped error codes returned by Nfc and HostCardEmulationService when an asynchronous NFC operation fails.
class NfcExceptionThrown via the failure path of an AsyncResource returned by Nfc when an NFC read, write, or HCE operation fails.
class NfcFFeliCa (JIS X 6319-4) technology view – the contactless protocol used by Suica, PASMO, ICOCA and other Japanese transit / payment cards.
interface NfcListenerCallback for long-running tag-discovery sessions registered via Nfc.addTagListener(NfcListener).
class NfcReadOptionsConfigures a single call to Nfc.readTag(NfcReadOptions) or Nfc.addTagListener(NfcListener).
class NfcVISO 15693 (vicinity-card) technology view.
class TagA tag discovered by Nfc.readTag(NfcReadOptions) or Nfc.addTagListener(NfcListener).
class TagTechnologyCommon surface for the low-level technology views attached to a TagIsoDep, MifareClassic, MifareUltralight, NfcA, NfcB, NfcF, NfcV.
enum TagTypeTag technologies that a discovered Tag may support.