NDEF is comprised of an NDEF Message with 1+ NDEF record types.
At a basic level, an NDEF record contains two components:
- Record Type: Used to contextualize the payload data; one of the defined NDEF record types
- Payload: The data of the record; formatted as defined by the specific NDEF record type
Together these two components represent the action to be taken by the devices when the NFC tag is touched. NDEF supports a fairly limited set of actions. More complex actions can be implemented with customized software running on the touching device. The benefit of using NDEF is that you don’t need to have custom software running on the touching device. Note that since the action is occurring on the touching device without any custom code or without any server side integration, no analytic data is captured about the usage of the NFC tag. Multiple records can be written to an NFC tag; however many software applications only act on the 1st record.