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

NdefMessage API

Convert an NdefMessage into a format from which you can extract data. For code examples, see Rhodes Webinar Sample: NFC and Rhodes System API Samples: NFC.

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_byte_array

Returns a byte array containing the NdefMessage.

Rho::NdefMessage.get_byte_array

get_records

Returns NdefRecord[], an array containing the records in an NdefMessage. Click here for an example in the Rhodes Developer Gude under NFC.

Rho::NdefMessage.get_records
Back to Top