bbmsp_contact_get_display_name()

Retrieve a contact's display name.

Synopsis:

#include <bbmsp/bbmsp_contactlist.h>
 
BBMSP_API bbmsp_result_t bbmsp_contact_get_display_name(const bbmsp_contact_t *contact, char *display_name, size_t display_name_buffer_size)

Since:

BlackBerry 10.0.0

Arguments:

contact

The contact whose display name to retrieve.

display_name

A buffer that will be updated with the display name encoded as UTF-8. The resulting buffer will be null-terminated on success.

display_name_buffer_size

The size of the display name buffer. This should be BBMSP_CONTACT_DISPLAY_NAME_MAX.

Library:

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

Description:

Returns:

BBMSP_SUCCESS if successful, BBMSP_FAILURE otherwise.