Samsung Web API provides the NDEFMessage interface to define an NDEF message. An NDEF message is composed of multiple records.
An NDEF record is created using the NDEFRecord interface and is identified by record type, ID, and payload.
The following figure shows the conceptual structure of an NDEF message.
Figure: Structure of an NDEF message
A record in an NDEF message can be created by using the following payload types:
The NDEF record content is created using text format.
The NDEFRecordText interface is used to create the text format payload using the text, languageCode, and encoding attributes.
The NDEF record content is created using a URI.
The NDEFRecordURI interface is used to create the URI type payload using the uri attribute.
The NDEF record content is created using a media format.
The NDEFRecordMedia interface is used to create the media format payload using the mimeType attribute.