nfc_get_sp_size()

Retrieve the size data inside a smart poster title record.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

sp_rec

The smart poster record containing the embedded size record in its payload. Chunked NDEF records are not supported.

size

A pointer to the size of the data inside a smart poster title record.

Library:

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

Description:

This function returns, if available, the size of the data embedded inside the 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.