Modules.Nfc.TagTechnologyNdef
Provides access to NDEF content and operations on a Modules.Nfc.NfcTag.
Use the Modules.Nfc.createTagTechnologyNdef method to create this tag technology.
See also: Ndef
Extends: Modules.Nfc.TagTechnology · Since: 1.1.0 · Platforms: android
Methods #
canMakeReadOnly #
Indicates whether a tag can be made read-only with makeReadOnly.
Returns: Boolean — true if it is possible to make this tag read-only.
getCachedNdefMessage #
Get the Modules.Nfc.NdefMessage that was read from the tag at discovery time.
Returns: Modules.Nfc.NdefMessage — NDEF Message read from the tag at discovery time, can be null.
getNdefMessage #
Read the current Modules.Nfc.NdefMessage on this tag.
Returns: Modules.Nfc.NdefMessage — The NDEF Message, can be null.
getType #
Get the NDEF tag type.
One of TAG_TYPE_NFC_FORUM_TYPE_1, TAG_TYPE_NFC_FORUM_TYPE_2, TAG_TYPE_NFC_FORUM_TYPE_3,
TAG_TYPE_NFC_FORUM_TYPE_4, TAG_TYPE_MIFARE_CLASSIC, or another NDEF tag type that has not
yet been formalized in the Android API.
Returns: String
makeReadOnly #
Make a tag read-only.
Returns: Boolean — true on success, false if it is not possible to make this tag read-only.
writeNdefMessage #
Overwrite the Modules.Nfc.NdefMessage on this tag.
| Name | Type | Summary | Optional |
|---|---|---|---|
message | Modules.Nfc.NdefMessage | The Modules.Nfc.NdefMessage to write | No |