nfc_delete_ndef_message()

Delete an NDEF message.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_delete_ndef_message(nfc_ndef_message_t *msg, bool delete_records)

Since:

BlackBerry 10.0.0

Arguments:

msg

The NDEF message to delete.

delete_records

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.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function deletes an NDEF message that is no longer required.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.