Use the NFCTag class to get the NFC tag in certain formats, such as Ndef. For code examples, see Rhodes Webinar Sample: NFC and Rhodes System API Samples: NFC.
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 Zebra 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
Returns an object with the implementation of the requested NFC tech based on the NFCTagTechnology class. Refer to the NFCTagTechnology class for the types of NFC tech you can request.
Rho::NFCTag.get_tech(tech_name)
tech_name |
Tech name based on the NFCTagTechnology class. |
Returns a string array containing the NFC tag.
Rho::NFCTag.get_tech_list
Returns a byte array containing the NFC tag ID.
Rho::NFCTag.get_ID