nfc_get_ndef_record_count()

Retrieve the number of NDEF records found in an NDEF message.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_ndef_record_count(const nfc_ndef_message_t *msg, unsigned int *count)

Since:

BlackBerry 10.0.0

Arguments:

msg

The NDEF message retrieved from the NDEF read.

count

The number of NDEF records found.

Library:

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

Description:

This function gets the number of NDEF records in NDEF message.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.