Skip to content

Modules.Nfc.TagTechnologyMifareUltralight

Provides access to MIFARE Ultralight properties and I/O operations on a Modules.Nfc.NfcTag.

Use the Modules.Nfc.createTagTechnologyMifareUltralight method to create this tag technology.

See also: MifareUltralight

Extends: Modules.Nfc.TagTechnology · Since: 1.1.0 · Platforms: android

Methods #

getMaxTransceiveLength #

Return the maximum number of bytes that can be sent with transceive.

Returns: Number

getTimeout #

Get the current transceive timeout in milliseconds.

Returns: Number

getType #

Return the MIFARE Ultralight type of the tag.

One of MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT, MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT_C, or MIFARE_ULTRALIGHT_TYPE_UNKNOWN.

Returns: Number

readPages #

Read 4 pages (16 bytes).

Parameters:
NameTypeSummaryOptional
pageOffsetNumberIndex of first page to read, starting from 0.No

Returns: Titanium.Buffer — 4 pages (16 bytes)

setTimeout #

Set the transceive timeout in milliseconds.

Parameters:
NameTypeSummaryOptional
timeoutNumberTimeout value in milliseconds.No

transceive #

Send raw NfcA data to the tag and receive the response.

Parameters:
NameTypeSummaryOptional
dataTitanium.BufferBytes to send.No

Returns: Titanium.Buffer — Response bytes received.

writePage #

Write 1 page (4 bytes).

Parameters:
NameTypeSummaryOptional
pageOffsetNumberIndex of page to write, starting from 0.No
dataTitanium.Buffer4 bytes to write.No

Titanium SDK Documentation