Add a category to an existing account in the BlackBerry Hub.
#include "bb/pim/unified/unified_data_source.h"
int uds_category_added(uds_context_t handle, const uds_category_data_t *pCategory)
BlackBerry 10.2.0
The handle that's associated with your app's registration with the BlackBerry Hub.
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.
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().
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.