Modules.Nfc.NdefRecord
> Modules.Nfc.NdefRecord

Represents an immutable NDEF record.

Requires: iOS 11.0 and later

Android: The NDEF record is the base type for more type-specific NDEF records. You will generally work with the type-specific NDEF records (e.g. NdefRecordText, NdefRecordUri, etc.) which have more applicable properties for each type of record.

Use one of the Modules.Nfc.createNdefRecordApplication, Modules.Nfc.createNdefRecordEmpty, Modules.Nfc.createNdefRecordExternal, Modules.Nfc.createNdefRecordMedia, Modules.Nfc.createNdefRecordSmartPoster, Modules.Nfc.createNdefRecordText, Modules.Nfc.createNdefRecordUnknown, or Modules.Nfc.createNdefRecordUri method variants to create an NDEF record.

iOS: The NFC-functionality is available on iOS 11 and later. It currently only allows to read specific NDEF-tags - writing tags is not supported by iOS so far.

See also: NdefRecord

  • 1.0.0
  • 6.3.0
Defined By

Properties

apiName : Stringreadonly

The name of the API that this proxy corresponds to.

The name of the API that this proxy corresponds to.

The value of this property is the fully qualified name of the API. For example, Button returns Ti.UI.Button.

  • 3.2.0
  • 3.2.0
  • 3.2.0
Modules.Nfc.NdefRecord
hashCode : Numberreadonly

The integer hash code for this object.

The integer hash code for this object.

  • 1.0.0
Modules.Nfc.NdefRecord
id : Stringreadonly

The variable length ID.

The variable length ID.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.

  • 3.6.0
Modules.Nfc.NdefRecord
payload : Titanium.Blob

The variable length payload for the record.

The variable length payload for the record.

Modules.Nfc.NdefRecord
recordType : Stringreadonly

The record type.

The record type.

  • 1.0.0
Modules.Nfc.NdefRecord
tnf : Numberreadonly

The 3-bit TNF.

The 3-bit TNF.

Modules.Nfc.NdefRecord
type : Stringreadonly

The variable length Type field.

The variable length Type field.

Defined By

Methods

Gets the value of the apiName property. ...

Gets the value of the apiName property.

  • 3.2.0
  • 3.2.0
  • 3.2.0

Returns

  • String
Modules.Nfc.NdefRecord
( ) : Number
Returns the integer hash code for this object. ...

Returns the integer hash code for this object.

  • 1.0.0

Returns

  • Number
Modules.Nfc.NdefRecord
( ) : String
Gets the value of the id property. ...

Gets the value of the id property.

Returns

  • String
Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Modules.Nfc.NdefRecord
( ) : Titanium.Blob
Gets the value of the payload property. ...

Gets the value of the payload property.

Returns

Modules.Nfc.NdefRecord
( ) : String
Gets the value of the recordType property. ...

Gets the value of the recordType property.

  • 1.0.0

Returns

  • String
Modules.Nfc.NdefRecord
( ) : Number
Gets the value of the tnf property. ...

Gets the value of the tnf property.

Returns

  • Number
Modules.Nfc.NdefRecord
( ) : String
Gets the value of the type property. ...

Gets the value of the type property.

Returns

  • String
Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void
Modules.Nfc.NdefRecord
( payload )
Sets the value of the payload property. ...

Sets the value of the payload property.

Parameters

Returns

  • void