nfc_add_sp_title()

Add a smart poster title record to a smart poster NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_add_sp_title(nfc_ndef_record_t *sp_rec, const char *lang, const char *utf8_string)

Since:

BlackBerry 10.0.0

Arguments:

sp_rec

The smart poster NDEF record to add the title record to its payload. Chunked NDEF records are not supported.

lang

The ISO/IANA language code of the title string. If the selected language has already been added to the payload, then function returns NFC_RESULT_INVALID_PARAMETER.

utf8_string

The null-terminated title string in UTF-8.

Library:

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

Description:

This function adds the data associated with a title record to a smart poster NDEF record payload.

Returns:

NFC_RESULT_SUCCESS, otherwise NFC_RESULT_INVALID_PARAMETER to indicate that a parameter is invalid, or that the provided NDEF record is chunked.