# Modules.Nfc.TagTechnologyIsoDep

Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations on a Modules.Nfc.NfcTag.

Availability
1.1.0

# Overview

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

See also: IsoDep (opens new window)

# Properties

# apiName READONLY

Availability
3.2.0
apiName :String

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

Availability
3.6.0

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

Availability
1.1.0

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

# close

Availability
1.1.0
close() void

Disable I/O operations to the tag and release resources.

Returns

Type
void

# connect

Availability
1.1.0
connect() void

Enable I/O operations to the tag.

Only one Tag Technology proxy can be connected to a Tag at a time.

Returns

Type
void

# getHiLayerResponse

Availability
1.1.0
getHiLayerResponse() Titanium.Buffer

Return the higher layer response bytes for NfcB tags.

Returns

ISO-DEP historical bytes, or null if this is not a NfcB tag.


# getHistoricalBytes

Availability
1.1.0
getHistoricalBytes() Titanium.Buffer

Return the ISO-DEP historical bytes for NfcA tags.

Returns

ISO-DEP historical bytes, or null if this is not a NfcA tag.


# getMaxTransceiveLength

Availability
1.1.0
getMaxTransceiveLength() Number

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

Returns

Type
Number

# getTimeout

Availability
1.1.0
getTimeout() Number

Get the current timeout for transceive in milliseconds.

Returns

Type
Number

# isConnected

Availability
1.1.0
isConnected() Boolean

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

# isExtendedLengthApduSupported

Availability
1.1.0
isExtendedLengthApduSupported() Boolean

Whether the NFC adapter on this device supports extended length APDUs.

Returns

Type
Boolean

# isValid

Availability
1.1.0
isValid() Boolean

Return true if this tag technology was successfully obtained.

Returns

Type
Boolean

# setTimeout

Availability
1.1.0
setTimeout(timeout) void

Set the timeout of transceive in milliseconds.

Parameters

Name Type Description
timeout Number

Timeout value in milliseconds

Returns

Type
void

# transceive

Availability
1.1.0
transceive(data) Titanium.Buffer

Send raw ISO-DEP data to the tag and receive the response.

Parameters

Name Type Description
data Titanium.Buffer

Bytes to send.

Returns

Response bytes received.