Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

NFCTag API

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.

Enabling NFC

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

get_tech(tech_name)

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.

get_tech_list

Returns a string array containing the NFC tag.

Rho::NFCTag.get_tech_list

get_ID

Returns a byte array containing the NFC tag ID.

Rho::NFCTag.get_ID
Back to Top