uds_category_added()

Add a category to an existing account in the BlackBerry Hub.

Synopsis:

#include "bb/pim/unified/unified_data_source.h"
 
int uds_category_added(uds_context_t handle, const uds_category_data_t *pCategory)

Since:

BlackBerry 10.2.0

Arguments:

handle

The handle that's associated with your app's registration with the BlackBerry Hub.

pCategory

The category to add. This category is represented as a uds_category_data_t and contains all of the information that's required to display the category in the appropriate account.

Library:

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

Description:

This function adds a category to an account that's already been registered with the BlackBerry Hub using uds_account_added(). To specify the account that you want to add the category to, you can call uds_category_data_set_account_id().

Returns:

UDS_SUCCESS if the category was added successfully, or a non-zero error code on failure. See uds_error_code_t or errno.h for details.

Last modified: 2014-05-14



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

comments powered by Disqus