nfc_create_sp_record()

Create an NFC Forum Well-Known SmartPoster NDEF record.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

utf8_uri

The UTF-8 encoded text. The URI will be set for the mandatory URI record of a SmartPoster NDEF record.

rec

The returned SmartPoster 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 SmartPoster NDEF record.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.