NFC Record
This class representative Record 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. |
Release resources.
Synchronous Return:
Method Access:
myObject.close()
Creates record.
Synchronous Return:
Record object.
Method Access:
Rho.Record.create()
Rho::Record.create()
Object ID.
Property Access:
myObject.ID
Record payload(data buffer).
Property Access:
myObject.payload
Optional field for NFC_NDEF_RTD_GENERAL record type.
Property Access:
myObject.recordId
Use if record type is NFC_NDEF_RTD_TEXT. Values see NFC Forum. For example UTF-8 is 2 and it will be set by default. This property will be ignored in read tag mode, you should find it in a payload.
Property Access:
myObject.textCharEncoding
Use if record type is NFC_NDEF_RTD_TEXT. This property will be ignored in read tag mode. This property will be ignored in read tag mode, you should find it in a payload.
Property Access:
myObject.textLanguage
When you create a new record then this field is needed for NFC_NDEF_RTD_GENERAL, for another types it will be set automatically.
Possible Values (false):
Property Access:
myObject.tnf
Record type. This property will be ignored in read tag mode. If you create a record you should set this property firstly.
Possible Values (false):
A text type record.
A URI type record.
A generic type record.
Property Access:
myObject.type
When you create a new record then this field is needed for NFC_NDEF_RTD_GENERAL, for another types it will be set automatically. For values see NFC Forum.
Property Access:
myObject.typeName
Use if record type is NFC_NDEF_RTD_URI. For values please see NFC Forum. This property will be ignored in read tag mode, you should find it in a payload.
Property Access:
myObject.uriProtocol