Gets an NDEF message after an NDEF read.
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_ndef_message(const nfc_target_t *target, unsigned int index, nfc_ndef_message_t **msg)
BlackBerry 10.0.0
The NFC target returned from the nfc_get_target() function.
The index of the message required from the message array. A valid index ranges from 0 to [nfc_get_ndef_message_count() - 1].
The returned NDEF message. The message is owned by the NFC system and hence should not be cleaned up by the application.
The nfc_get_ndef_message() function gets a message from the array of one or more messages found after an NDEF read is successful.
NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER, which indicates that an invalid argument was passed to the function.