NFC Tag
This class representative NFC Tag object
In order to use this API you must include the following extension in your build.yml
extensions: ["nfc"]
|  | If you are building a Windows Mobile or Windows CE app with this API, you must set your app_type as “rhoelements” in your build.yml as shown here. | 
Methods
close()
release resources, close connection
 
Method Access:
- 
Instance Method: This method can be accessed via an instance object of this class: 
     
exchangeData(STRING sendData)
This function exchanges raw data with Tag. Tag shouldn’t be NDEF formated. Only Milfare and Ti tags are supported. When sendData is empty then method reads data from Tag and write into receiveData parameter.
 
Synchronous Return:
- HASH- receiveData : STRING
NFC_SUCCESS if OK 
 
 
Method Access:
- 
Instance Method: This method can be accessed via an instance object of this class: - myObject.exchangeData(STRING sendData)
 
     
getTagById(STRING id)
This function returns Tag object
 
Method Access:
- 
Class Method: This method can only be accessed via the API class object. 
- JavaScript: Rho.Tag.getTagById(STRING id)
- Ruby: Rho::Tag.getTagById(STRING id)
 
     
makeReadOnly()
Method Access:
- 
Instance Method: This method can be accessed via an instance object of this class: 
     
writeMessage(ARRAY messages)
write messages on Tag. On the current moment only 1 message is supported.
 
Method Access:
- 
Instance Method: This method can be accessed via an instance object of this class: - myObject.writeMessage(ARRAY messages)
 
     
 
Properties
ID : STRING Read Only 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
freeSize : INTEGER Read Only 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
isConnected : BOOLEAN Read Only 
connected or not(if connections between tag and nfc device exists)
 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
isNdef : BOOLEAN Read Only 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
isReadOnly : BOOLEAN Read Only 
Indicating if the tag is locked for write operation.
 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
serialNumber : STRING Read Only 
The serial number of a tag.
 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
size : INTEGER Read Only 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: 
     
type : STRING Read Only 
Possible Values (false):
 Constant: Rho.Tag.TAG_TYPE_TOPAZ (For Ruby use "::" instead of ".")
 String: 1 
Constant: Rho.Tag.TAG_TYPE_FELICA (For Ruby use "::" instead of ".")
 String: 2 
Constant: Rho.Tag.TAG_TYPE_MIFARE_CLASSIC (For Ruby use "::" instead of ".")
 String: 3 
Constant: Rho.Tag.TAG_TYPE_MIFARE_UL (For Ruby use "::" instead of ".")
 String: 4 
Constant: Rho.Tag.TAG_TYPE_MIFARE_DESFIRE (For Ruby use "::" instead of ".")
 String: 6 
Constant: Rho.Tag.TAG_TYPE_ISO15693 (For Ruby use "::" instead of ".")
 String: 7 
Constant: Rho.Tag.TAG_TYPE_B (For Ruby use "::" instead of ".")
 String: 8 
Constant: Rho.Tag.TAG_TYPE_MIFARE (For Ruby use "::" instead of ".")
 String: 9 
Constant: Rho.Tag.TAG_TYPE_NXP_I_CODE (For Ruby use "::" instead of ".")
 String: 10 
Constant: Rho.Tag.TAG_TYPE_MIFARE_PLUS (For Ruby use "::" instead of ".")
 String: 11 
Constant: Rho.Tag.TAG_TYPE_MIFARE_ULC (For Ruby use "::" instead of ".")
 String: 12 
Constant: Rho.Tag.TAG_TYPE_MIFARE_PLUS_S2K (For Ruby use "::" instead of ".")
 String: 13 
Constant: Rho.Tag.TAG_TYPE_MIFARE_PLUS_X2K (For Ruby use "::" instead of ".")
 String: 14 
Constant: Rho.Tag.TAG_TYPE_UNKNOWN (For Ruby use "::" instead of ".")
 String: 255 
 
Property Access:
- 
Instance: This property can be accessed via an instance object of this class: