Retrieve the data associated with a specific smart poster media or icon record.
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_get_sp_media_data(const nfc_ndef_record_t *sp_rec, unsigned int index, char **mime_type, uchar_t **data, size_t *data_length)
BlackBerry 10.0.0
The smart poster record containing the embedded media record in its payload. Chunked NDEF records are not supported.
The index of the record found from 0 to the value from nfc_get_sp_media_count() minus 1. Values outside this range returns NFC_RESULT_INVALID_PARAMETER.
The returned allocated null-terminated mime type. This string must be de-allocated by calling free().
The returned allocated media data. This string must be de-allocated by calling the free() function.
The length of the data buffer.
This function returns, if available, the data associated with the requested media record embedded inside the smart poster NDEF record payload.