navigator_invoke_query_result_action_get_target_count()

Get the number of target values in an action.

Synopsis:

#include <bps/navigator_invoke.h>
 
BPS_API int navigator_invoke_query_result_action_get_target_count(const navigator_invoke_query_result_action_t *action)

Since:

BlackBerry 10.0.0

Arguments:

action

The navigator_invoke_query_result_action_t structure holding the target values.

Library:

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

Description:

The invoke_get_query_result_target_count() function extracts the number of navigator_invoke_query_result_target_t structures contained within a navigator_invoke_query_result_action_t structure. The navigator_invoke_query_result_target_t target structures contained are considered viable targets to perform the given action.

Returns:

The number of targets inside the action, -1 otherwise.