nfc_get_ndef_record_type()

Retrieve the record type of a NDEF record.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

rec

The NDEF record.

record_type

The returned record type.

Library:

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

Description:

This function returns the record type associated with the NDEF record. The record type is returned as is and may not conform to the NDEF specification.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.