NdefRecord

data class NdefRecord(val tnf: NdefRecord.Tnf, val type: ByteString = ByteString(), val id: ByteString = ByteString(), val payload: ByteString = ByteString())

An immutable NDEF Record.

Constructors

Link copied to clipboard
constructor(tnf: NdefRecord.Tnf, type: ByteString = ByteString(), id: ByteString = ByteString(), payload: ByteString = ByteString())

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Type-Name-Field values.

Properties

Link copied to clipboard
val id: ByteString

identifier meta-data, not commonly used.

Link copied to clipboard

The MIME type of the record, if it has one.

Link copied to clipboard
val payload: ByteString

the actual payload.

Link copied to clipboard

the 3-bit TNF (Type Name Field) that provides high level typing for the rest of the record.

Link copied to clipboard
val type: ByteString

detailed typing for the payload.

Link copied to clipboard
val uri: String?

The URI of record, if one can be found.