uds_inbox_item_data_set_icon()

Set the icon for the specified inbox item data.

Synopsis:

#include "bb/pim/unified/unified_data_source.h"
 
void uds_inbox_item_data_set_icon(uds_inbox_item_data_t *inbox_item, const char *icon)

Since:

BlackBerry 10.2.0

Arguments:

inbox_item

The inbox item to set the icon for. This inbox item is represented by a uds_inbox_item_data_t and is created using uds_inbox_item_data_create().

icon

The file name of the icon to set.

Library:

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

Description:

This icon appears on the left side of the inbox list item (beside the name and description) when the list item is displayed in the BlackBerry Hub. The icon that you want to use must be located in the asset directory that you specify when you call uds_register_client(). The icon should also be 81x81 pixels and in PNG format.

The string value that you pass in as the icon parameter must remain valid until the data is used in a call to uds_item_added() or uds_item_updated().

Returns: