nfc_create_text_record()

Create an NFC Forum Well-Known Text NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_create_text_record(const char *utf8_string, const char *language, nfc_ndef_record_t **rec)

Since:

BlackBerry 10.0.0

Arguments:

utf8_string

The text in UTF-8.

language

The ISO/IANA locale code.

rec

The returned Text NDEF record

Library:

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

Description:

This function creates an NFC Forum Well-Known Text NDEF record.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.