nfc_get_ndef_record_id()

Retrieve the record id of an NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_ndef_record_id(const nfc_ndef_record_t *rec, char **id)

Since:

BlackBerry 10.0.0

Arguments:

rec

The NDEF record.

id

The returned record ID.

Library:

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

Description:

This function returns the record ID associated with the NDEF record. The record ID is returned as is and may not be a valid URI that conforms to RFC 3986.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.