Modules.Nfc.TagTechnologyMifareClassic
> Modules.Nfc.TagTechnologyMifareClassic

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

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

See also: MifareClassic

  • 1.1.0
Defined By

Properties

Modules.Nfc.TagTechnologyMifareClassic
KEY_DEFAULT : Titanium.Bufferreadonly

The default factory key.

The default factory key.

Modules.Nfc.TagTechnologyMifareClassic
KEY_MIFARE_APPLICATION_DIRECTORY : Titanium.Bufferreadonly

The well-known key for tags formatted according to the MIFARE Application Directory (MAD) specification.

The well-known key for tags formatted according to the MIFARE Application Directory (MAD) specification.

Modules.Nfc.TagTechnologyMifareClassic
KEY_NFC_FORUM : Titanium.Bufferreadonly

The well-known key for tags formatted according to the NDEF on MIFARE Classic specification.

The well-known key for tags formatted according to the NDEF on MIFARE Classic specification.

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

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

The tag technology that has been discovered.

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).

Defined By

Methods

Modules.Nfc.TagTechnologyMifareClassic
( sectorIndex, key ) : Boolean
Authenticate a sector with key A. ...

Authenticate a sector with key A.

Parameters

  • sectorIndex : Number

    Index of sector to authenticate, starting from 0.

  • key : Titanium.Buffer

    6-byte authentication key.

Returns

  • Boolean

    Returns true on success, false on authentication failure.

Modules.Nfc.TagTechnologyMifareClassic
( sectorIndex, key ) : Boolean
Authenticate a sector with key B. ...

Authenticate a sector with key B.

Parameters

  • sectorIndex : Number

    Index of sector to authenticate, starting from 0.

  • key : Titanium.Buffer

    6-byte authentication key.

Returns

  • Boolean

    Returns true on success, false on authentication failure.

Modules.Nfc.TagTechnologyMifareClassic
( blockIndex ) : Number
Return the sector that contains a given block. ...

Return the sector that contains a given block.

Parameters

  • blockIndex : Number

    Index of block to lookup, starting from 0.

Returns

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

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

Returns

  • void
Enable I/O operations to the tag. ...

Enable I/O operations to the tag.

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

Returns

  • void
Modules.Nfc.TagTechnologyMifareClassic
( blockIndex, value )
Decrement a value block, storing the result in the temporary block on the tag. ...

Decrement a value block, storing the result in the temporary block on the tag.

Parameters

  • blockIndex : Number

    Index of block to decrement, starting from 0.

  • value : Number

    Non-negative to decrement by.

Returns

  • void
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.TagTechnologyMifareClassic
( ) : Number
Return the total number of MIFARE Classic blocks. ...

Return the total number of MIFARE Classic blocks.

Returns

  • Number
Modules.Nfc.TagTechnologyMifareClassic
( sectorIndex ) : Number
Return the number of blocks in the given sector. ...

Return the number of blocks in the given sector.

Parameters

  • sectorIndex : Number

    Index of sector, starting from 0.

Returns

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

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Modules.Nfc.TagTechnologyMifareClassic
( ) : Number
Return the maximum number of bytes that can be sent with transceive. ...

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

Returns

  • Number
Modules.Nfc.TagTechnologyMifareClassic
( ) : Number
Return the number of MIFARE Classic sectors. ...

Return the number of MIFARE Classic sectors.

Returns

  • Number
Modules.Nfc.TagTechnologyMifareClassic
( ) : Number
Return the size of the tag in bytes. ...

Return the size of the tag in bytes.

Returns

  • Number
Gets the value of the tag property. ...

Gets the value of the tag property.

Returns

Modules.Nfc.TagTechnologyMifareClassic
( ) : Number
Get the current transceive timeout in milliseconds. ...

Get the current transceive timeout in milliseconds.

Returns

  • Number
Modules.Nfc.TagTechnologyMifareClassic
( ) : Number
Return the type of this MIFARE Classic compatible tag. ...

Return the type of this MIFARE Classic compatible tag.

Returns

  • Number
Modules.Nfc.TagTechnologyMifareClassic
( blockIndex, value )
Increment a value block, storing the result in the temporary block on the tag. ...

Increment a value block, storing the result in the temporary block on the tag.

Parameters

  • blockIndex : Number

    Index of block to increment, starting from 0.

  • value : Number

    Non-negative to increment by.

Returns

  • void
Returns true if connect has completed, and close has not been called, and the tag is not known to be out of range. ...

Returns true if connect has completed, and close has not been called, and the tag is not known to be out of range.

Returns

  • Boolean
Return true if this tag technology was successfully obtained. ...

Return true if this tag technology was successfully obtained.

Returns

  • Boolean
Modules.Nfc.TagTechnologyMifareClassic
( blockIndex ) : Titanium.Buffer
Read 16-byte block. ...

Read 16-byte block.

Parameters

  • blockIndex : Number

    Index of block to read, starting from 0.

Returns

Modules.Nfc.TagTechnologyMifareClassic
( blockIndex )
Copy from a value block to the temporary block. ...

Copy from a value block to the temporary block.

Parameters

  • blockIndex : Number

    Index of block to copy from.

Returns

  • void
Modules.Nfc.TagTechnologyMifareClassic
( sectorIndex ) : Number
Return the first block of a given sector. ...

Return the first block of a given sector.

Parameters

  • sectorIndex : Number

    Index of sector to lookup, starting from 0.

Returns

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

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void
Sets the value of the tag property. ...

Sets the value of the tag property.

Parameters

Returns

  • void
Modules.Nfc.TagTechnologyMifareClassic
( timeout )
Set the transceive timeout in milliseconds. ...

Set the transceive timeout in milliseconds.

Parameters

  • timeout : Number

    Timeout value in milliseconds.

Returns

  • void
Modules.Nfc.TagTechnologyMifareClassic
( data ) : Titanium.Buffer
Send raw NfcA data to the tag and receive the response. ...

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

Parameters

Returns

Modules.Nfc.TagTechnologyMifareClassic
( blockIndex )
Copy from the temporary block to a value block. ...

Copy from the temporary block to a value block.

Parameters

  • blockIndex : Number

    Index of block to copy to.

Returns

  • void
Modules.Nfc.TagTechnologyMifareClassic
( blockIndex, data )
Write 16-byte block. ...

Write 16-byte block.

Parameters

  • blockIndex : Number

    Index of block to write, starting from 0.

  • data : Titanium.Buffer

    16 bytes of data to write.

Returns

  • void