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

NFCTagTechnology_MifareUltralight 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

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

Types

TYPE_ULTRALIGHT = 1
TYPE_ULTRALIGHT_C = 2
TYPE_UNKNOWN = -1

get_type

Returns int: the type of a MifareUltralight tag.

write_page

Write a page to a MifareUltralight tag.

Rho::NFCTagTechnology_MifareUltralight.write_page(index, block)
index integer: location where the block is written in the tag.
block 4 byte array written to the tag.

read_page

Returns a page (16 byte array) read from a MifareUltralight tag.

Rho::NFCTagTechnology_MifareUltralight.read_page(index)
index integer: location where the block is read from the tag.

transceive

Sends data in a byte array to a tag and returns the result from the tag in a byte array.

Rho::NFCTagTechnology_MifareUltralight.transceive(data)
data byte[] sent to the tag.
Back to Top