# Modules.Nfc.TagTechnologyNfcA
Provides access to NFC-A (ISO 14443-3A) properties and I/O operations on a Modules.Nfc.NfcTag.
# Overview
Use the Modules.Nfc.createTagTechnologyNfcA method to create this tag technology.
See also: NfcA (opens new window)
# Properties
# apiName READONLY
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, Titanium.UI.Button
returns Ti.UI.Button
.
# lifecycleContainer
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.
# tag
The tag technology that has been discovered.
When a tag is discovered, a Modules.Nfc.NfcTag proxy is created and passed as a property to the onNdefDiscovered
, onTagDiscovered
, or
onTechDiscovered
callback (see NdefDiscovered).
# Methods
# connect
Enable I/O operations to the tag.
Only one Tag Technology proxy can be connected to a Tag at a time.
Returns
- Type
- void
# getAtqa
Return the ATQA/SENS_RES bytes from tag discovery.
Returns
ATQA/SENS_RES bytes.
- Type
- Titanium.Buffer
# getMaxTransceiveLength
Return the maximum number of bytes that can be sent with transceive
.
Returns
- Type
- Number
# getSak
Return the SAK/SEL_RES bytes from tag discovery.
Returns
SAK bytes.
- Type
- Number
# getTimeout
Get the current transceive
timeout in milliseconds.
Returns
- Type
- Number
# isConnected
Returns true if connect has completed, and close has not been called, and the tag is not known to be out of range.
Returns
- Type
- Boolean
# isValid
Return true if this tag technology was successfully obtained.
Returns
- Type
- Boolean
# setTimeout
Set the timeout of transceive
in milliseconds.
Parameters
Name | Type | Description |
---|---|---|
timeout | Number | Timeout value in milliseconds |
Returns
- Type
- void
# transceive
Send raw NFC-A commands to the tag and receive the response.
Parameters
Name | Type | Description |
---|---|---|
data | Titanium.Buffer | Bytes to send. |
Returns
Response bytes received.
- Type
- Titanium.Buffer