Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public enum TagType
- Object
- Enum<TagType>
- TagType
ImplementsComparable<TagType>
Tag technologies that a discovered Tag may support. A single tag
typically reports several entries – e.g. a MIFARE Classic 1K tag returns
[NFC_A, MIFARE_CLASSIC, NDEF] – so callers use Tag.supports(TagType)
to decide which API to call.
Not every platform exposes every technology:
- Android – exposes the full set via
android.nfc.tech.*. - iOS – Core NFC exposes only
NDEF,ISO_DEP(ISO 14443-4 / ISO 7816),NFC_F(FeliCa), andMIFARE_ULTRALIGHT(as a subset ofNFCMiFareTag). MIFARE Classic is intentionally not supported by Apple and reports asNFC_Aonly. - JavaSE simulator – all values are emulated; the Simulate -> NFC menu lets you set the tech list per virtual tag.
Enum constants
NDEF | Tag carries an NDEF message that can be read by Tag.readNdef() and (if writable) updated by Tag.writeNdef(NdefMessage). |
ISO_DEP | ISO 14443-4 / ISO 7816-4 – contact-less smart cards, EMV payment cards, ePassports, government ID. |
MIFARE_CLASSIC | NXP MIFARE Classic 1K/4K. |
MIFARE_ULTRALIGHT | NXP MIFARE Ultralight / Ultralight C / NTAG (NTAG213/215/216). |
NFC_A | NFC Forum Type 2 (low-level NFC-A / ISO 14443-3A). |
NFC_B | NFC Forum Type 4B (ISO 14443-3B). |
NFC_F | FeliCa (JIS X 6319-4) – Japanese transit / payment cards. |
NFC_V | ISO 15693 – vicinity cards used in libraries, ski-lift passes, blood bags. |
Methods
public static TagType[] values() | |
public static TagType valueOf(String name) |
Inherited methods
Enum constant details
NDEF
NDEFTag carries an NDEF message that can be read by
Tag.readNdef() and
(if writable) updated by Tag.writeNdef(NdefMessage). The vast
majority of consumer-facing NFC tags include this technology.ISO_DEP
ISO_DEPISO 14443-4 / ISO 7816-4 – contact-less smart cards, EMV payment
cards, ePassports, government ID. Use [IsoDep#transceive(byte[])] to
send APDUs. Available on Android via
IsoDep and on iOS via
NFCTagReaderSession with NFCISO7816Tag.MIFARE_CLASSIC
MIFARE_CLASSICNXP MIFARE Classic 1K/4K. Block-level read/write with key A/B
authentication via
MifareClassic. Android-only – iOS
intentionally does not expose this technology.MIFARE_ULTRALIGHT
MIFARE_ULTRALIGHTNXP MIFARE Ultralight / Ultralight C / NTAG (NTAG213/215/216).
Page-level read/write via
MifareUltralight. Supported on both
Android (MifareUltralight) and iOS (NFCMiFareTag).NFC_A
NFC_ANFC Forum Type 2 (low-level NFC-A / ISO 14443-3A). Use
NfcA for raw
transceive.NFC_B
NFC_BNFC Forum Type 4B (ISO 14443-3B). Android-only.
NFC_F
NFC_FFeliCa (JIS X 6319-4) – Japanese transit / payment cards. Use
NfcF for raw transceive. Supported on Android and on iOS 13+ via
NFCFeliCaTag. App must declare its system codes in the iOS plist
com.apple.developer.nfc.readersession.felica.systemcodes.NFC_V
NFC_VISO 15693 – vicinity cards used in libraries, ski-lift passes, blood
bags. Android-only.
Method details
values
public static TagType[] values()valueOf
public static TagType valueOf(String name)