Delete an NDEF message.
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_delete_ndef_message(nfc_ndef_message_t *msg, bool delete_records)
BlackBerry 10.0.0
The NDEF message to delete.
If true, the function will delete and free the memory associated with the NDEF records stored inside the NDEF message. If false, the application must make a call to nfc_delete_ndef_record() for each NDEF record in this NDEF message to avoid a memory leak.
This function deletes an NDEF message that is no longer required.
NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.