uds_update_item_context_action()

Update an existing item context action that's registered with the BlackBerry Hub.

Synopsis:

#include "bb/pim/unified/unified_data_source.h"
 
int uds_update_item_context_action(uds_context_t handle, uds_account_key_t accountId, const uds_item_action_data_t *pItem)

Since:

BlackBerry 10.2.0

Arguments:

handle

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

accountId

The account key of the existing account to update the item context action for, as a uds_account_key_t.

pItem

The item context action to update. This item action is represented by a uds_item_action_data_t and contains all of the information that's required to display and invoke the action based on the state of an inbox list item in the BlackBerry Hub.

Library:

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

Description:

This function updates an existing item context action that's already been registered with the BlackBerry Hub using uds_register_item_context_action(). You might want to update item context actions in response to certain events, such as locale changes.

Returns:

UDS_SUCCESS if the item context action was updated successfully, or a non-zero error code on failure. See uds_error_code_t or errno.h for details.