bbmsp_user_profile_box_register_icon()

Register an image with the BBM Social Platform for use with profile box items.

Synopsis:

#include "bbmsp/bbmsp_user_profile_box.h"
 
BBMSP_API bbmsp_result_t bbmsp_user_profile_box_register_icon(const int32_t icon_id, const bbmsp_image_t *icon)

Since:

BlackBerry 10.0.0

Arguments:

icon_id

The non-negative unique ID of the image.

icon

A pointer to the image.

Library:

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

Description:

Registering an image uploads it to the user's BlackBerry device for use when the app is not running. This process takes place asynchronously. Images should be registered using the same ID on different devices and in different versions of your app because images are distributed on a peer-to-peer basis between devices. Registered images cannot be null or empty. If bbmsp_can_show_profile_box() returns false, this method will return BBMSP_FAILURE.

Returns:

BBMSP_ASYNC is successful, BBMSP_FAILURE otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus