nfc_set_sp_size()

Set the optional smart poster size record in a smart poster NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_set_sp_size(nfc_ndef_record_t *sp_rec, uint32_t size)

Since:

BlackBerry 10.0.0

Arguments:

sp_rec

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

size

The 32-bit value representing the size.

Library:

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

Description:

This function sets the optional size record inside the smart poster NDEF record payload. This function must not be called more than once on the same NDEF record.

Returns:

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