Add a NDEF record to an NDEF message.
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_add_ndef_record(nfc_ndef_message_t *msg, const nfc_ndef_record_t *rec)
BlackBerry 10.0.0
The NDEF message to add the NDEF record to.
The NDEF record to add.
This function adds an NDEF record to an NDEF message. If this function does not return NFC_RESULT_SUCCESS, the ownership for the memory associated with rec remains with the application, and should be cleaned up via nfc_delete_ndef_record(). Otherwise, the memory associated with rec is subsequently owned by msg. In this case, if msg is deleted via nfc_delete_ndef_message() with its parameter delete_records set to false, rec should not be cleaned up manually by the application.
NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.