nfc.writeTag()


Type Function

Return value none

Platform Android only

See also nfc.*


Overview

Writes the provided NDEF message into the recently discovered NFC tag. Therefore call this only after you have discovered a TAG.

Syntax

nfc.writeTag(params)

params required

Table. Contains parameters for the call — see the next section for details.

Parameter Reference

The params table includes parameters for the call.

message required

NdefMessage. Contains NDEF message as an array of NDEF records.

doNotReleaseTag optional

Boolean. If true, the discovered tag won’t be released after a successful write operation, so you would be able to write to that tag again if necessary.