# NFCAdapter
Start from base library version 2.11.2. Please remaining backward compatible.
# attribute
# Object tech
Tag type enumeration
attribute | type | Introductions |
---|---|---|
ndef | string | Corresponds to a Ndef instance that supports reading and writing of NDF data on NFC labels in the NDEV format |
nfcA | string | Corresponding to the NfcA instance, the instance supports NFC-A (ISO 14443-3A)Standard reading and writing |
nfcB | string | Corresponding to NfcB instance, the instance supports NFC-B (ISO 14443-3B)Standard reading and writing |
isoDep | string | Corresponds to the IsoDep instance, which supports ISO-DEP (ISO 14443-4)Standard reading and writing |
nfcF | string | Corresponding to NfcF instance, instance support NFC-F (HE 6319-4)Standard reading and writing |
nfcV | string | Corresponding to NfcV instance, instance support NFC-V (ISO 15693)Standard reading and writing |
mifareClassic | string | Corresponding Mifare Classic instance, the instance supports MIFARE Reading and Writing of Classic Tags |
mifareUltralight | string | Corresponds to the Mifare Ultimate instance, which supports MIFARE Read and write of Ultimate tag |
# method
# NFCAdapter.startDiscovery()
# NFCAdapter.stopDiscovery()
# Ndef NFCAdapter.getNdef()
Gets an instance of Ndef that supports reading and writing NDF data on NFC tags in NDEV format
# NfcA NFCAdapter.getNfcA()
Get an instance of NfcA, and the instance supports NFC-A (ISO 14443-3A)Standard reading and writing
# NfcB NFCAdapter.getNfcB()
Get an NfcB instance that supports NFC-B (ISO 14443-3B)Standard reading and writing
# IsoDep NFCAdapter.getIsoDep()
Get the IsoDep instance, which supports ISO-DEP (ISO 14443-4)Standard reading and writing
# NfcF NFCAdapter.getNfcF()
Get the NfcF instance, which supports NFC-F (HE 6319-4)Standard reading and writing
# NfcV NFCAdapter.getNfcV()
Get an instance of NfcV, which supports NFC-V (ISO 15693)Standard reading and writing
# MifareClassic NFCAdapter.getMifareClassic()
Get a Mifare Classic instance that supports MIFARE Reading and Writing of Classic Tags
# MifareUltralight NFCAdapter.getMifareUltralight()
Get the Mifare Ultra instance, which supports MIFARE Read and write of Ultimate tag
# NFCAdapter.onDiscovered(function callback)
to monitor NFC Day
# NFCAdapter.offDiscovered(function callback)
Cancel the wiretap. NFC Day