nfc_get_ndef_message_count()

Retrieve the number of NDEF messages found after an NDEF read.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_get_ndef_message_count(const nfc_target_t *target, unsigned int *count)

Since:

BlackBerry 10.0.0

Arguments:

target

The NFC target returned from the nfc_get_target() function.

count

The returned number of NDEF messages found, corresponding to the NDEF types specified.

Library:

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

Description:

This function retrieves the number of NDEF messages found after a successful NDEF read.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER, which indicates that an invalid argument was passed to the function.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus