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

NFCTagTechnology_NdefFormatable API

Subclass of NFCTagTechnology.

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

format

Formats a tag as NDEF, and writes an NdefMessage. The card is left in a read-write state after this operation. This is an I/O operation and will block until complete.

Rho::NFCTagTechnology_NdefFormatable.format(msg)
msg an NdefMessage.

format_read_only

Formats a tag as NDEF, write a NdefMessage, and makes it read-only. The card is left in a read-only state if this method returns successfully.

Rho::NFCTagTechnology_NdefFormatable.format_read_only(msg)
msg an NdefMessage.
Back to Top