Use the NFCTagTechnology to connect to NFC tags and to determine their type.
As of Rhodes version 3.3.3, the Barcode, NFC, and Signature Capture APIs, as well as Rhom data encryption are removed from Rhodes. These features are only supported in Motorola RhoMobile Suite. If you wish to use these features, you will need to upgrade to RhoMobile Suite. Your application’s build.yml will also need to be modified to indicate the application type is ‘Rhoelements’. Additionally, a RhoElements license is required.
To use the NFC methods, you need to enable NFC on the Android device and ensure that the version is 2.3.3 or later. Do this by adding that capability to the build.yml file:
android: version 2.3.3 extensions: - nfc
The NFCTagTechnology class has several properties to determine the type of the NFC tag.
ISODEP = 'IsoDep' MIFARE_CLASSIC = 'MifareClassic' MIFARE_ULTRALIGHT = 'MifareUltralight' NDEF = 'Ndef' NDEF_FORMATABLE = 'NdefFormatable' NFCA = 'NfcA' NFCB = 'NfcB' NFCF = 'NfcF' NFCV = 'NfcV'
Returns string – the name of the NFC tag.
Connects to an NFC tag.
Closes a connection with an NFC tag.
Returns true if the application is connected with an NFC tag, false otherwise.