nfc_get_ndef_record()

Get an NDEF record from an NDEF message.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_ndef_record(const nfc_ndef_message_t *msg, unsigned int index, nfc_ndef_record_t **rec)

Since:

BlackBerry 10.0.0

Arguments:

msg

The NDEF message retrieved from the NDEF read.

index

The index of the record required from the NDEF message.

rec

The returned NDEF record.

Library:

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

Description:

This function gets an NDEF record found in an NDEF message. Ownership of the memory associated with the returned NDEF record remains with the NDEF message.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.