Set the target key of the menu request.
#include "bps/menu.h"
BPS_API int menu_request_set_target_key(menu_request_t *request,
const char *target_key)
BlackBerry 10.3.0
The request to update.
The target key to set.
The menu_request_set_target_key() function sets the target key of the specified menu request. When the target key is set, the resulting menu only includes actions and targets that match the target key.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.