menu_request_set_target_key()

Set the target key of the menu request.

Synopsis:

#include "bps/menu.h"
 
BPS_API int menu_request_set_target_key(menu_request_t *request,
                                        const char *target_key)

Since:

BlackBerry 10.3.0

Arguments:

request

The request to update.

target_key

The target key to set.

Library:

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

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.